Recently, I have started using Xcode 4 for developing iOS apps.
In Xcode intellisense's autocomplete box, there are some letters in colored boxes before every suggestion. I know that they represent the property of the word we are typing like f,T,C,M,P,C,K,# etc.
Is there some kind of glossary available to find their quick meanings?
Meanings of f,C,T,# are understandable (function, class etc) but there are many others which I dont know. I assume these letters are standard across all IDEs like Visual Studio, Netbeans etc. Correct me if I am wrong.
Please suggest.
P: property (IIRC Xcode favors L/V for Swift, but you see P for ObjC properties)
It's sitting there in your car's shift quadrant, holding down the last position. If you're like most drivers nowadays, you've never even used it — but that doesn't mean the lonely “L” is completely without its uses. It stands for “Low,” which typically means 1st gear but can sometimes mean the lower gears.
Xcode does have its own code-completion system, but so far as I know the formats are vastly different – meaning, you can't really make use of that conveniently-already-there Intellisense data.
In Xcode this is called "Code Sense". And these icons also exist in Xcode 3. These icons are also used in symbol navigation.
Red: macros
#define
)Brown: Core Data / namespace
= modeled property
= C++ namespace
Orange: aliased types
Green: variables
Blue: methods
Purple: aggregate types
Gray: snippets
Icons: #pragma mark
or comments
!!!: ...
FIXME: ...
???: ...
TODO: ...
MARK: ...
You should be able to look up the meanings from the filenames from /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff
*.
In later versions of Xcode, the path is moved to /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources/Assets.car
, see Analysing Assets.car file in IOS on how to extract the images from the *.car
I was searching for the meaning behind the "rM" icon. I finally found the answer (many thanks to kennytm):
The "rM" symbol represents a recursive method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With