Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

touchUpInside

macrumors regular
Original poster
May 4, 2014
127
8
UTC -07:00
Throughout Xcode, there are lettered blocks (icons seen below). Is there an official term to refer to them as ? Is there a list of what the different letters mean ? Beyond 'Class', 'Method', and 'Property', I just have to guess on others.

smallBlocksWithLetters.png


Cheers !


.
 
Icons?

If you open up the Xcode.app bundle (right click on it on finder and show contents), I'm pretty sure the icon files are all in there, with actual names so you can know exactly what they stand for.
 
Thanks, ArtOW. That lead me to finding the following from stackoverflow (circa 2011) . . .

In Xcode this is called "Code Sense". And these icons also exist in Xcode 3.

Red: macros

  • # = macro (think #define)
Brown: Core Data / namespace

  • C = modeled class
  • M = modeled method
  • P = modeled property

  • N = C++ namespace
Orange: aliased types

  • C̲ = Objective-C category
  • E = enum
  • T = typedef
Green: variables

  • B = binding
  • ƒ = function
  • F = field
  • K = constant
  • L = local variable
  • O = IBOutlet
  • V = variable (can be ivar, global var, local var, etc.)
  • x = parameter (think f(x))
Blue: methods

  • A = IBAction
  • M = method
  • P = property
Purple: aggregate types

  • C = class (Objective-C or C++)
  • ₠ = class extension
  • Pr = Objective-C protocol
  • S = struct
  • U = union
You should be able to look up the meanings from the filenames from /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff. Note that, not all icons are used in Code Sense, as these are shared by all Xcode components.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.