small lettered blocks seen in Xcode

Discussion in 'iOS Programming' started by touchUpInside, Dec 23, 2015.

  1. touchUpInside macrumors member

    touchUpInside

    Joined:
    May 4, 2014
    Location:
    UTC -07:00
    #1
    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 !


    .
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    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.
     
  3. touchUpInside thread starter macrumors member

    touchUpInside

    Joined:
    May 4, 2014
    Location:
    UTC -07:00
    #3
    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.
     

Share This Page