Skip to content

Instantly share code, notes, and snippets.

View pilky's full-sized avatar

Martin Pilkington pilky

View GitHub Profile
- If something has an underscore it is classed as private and ignored
- If a typedef appears multiple times (eg in an #if statement) the first documented one is used
- Enums that have both a type def and a name (@enum name) will have the title "type - doc name"
- Any functions or macros found will be placed in a separate functions page
- Constants groups and typedefs in separate files can be related to a class with (@class name). They can have multiple @class statements
- Any constants groups or typedefs found in files that don't contain classes and aren't that related to classes are put in separate constants and data types pages
@pilky
pilky / gist:998776
Created May 30, 2011 11:46
Example Accessor
- (NSArray *)importsForClass:(Class)aClass {
NSMutableDictionary *importsDict = [NSMutableDictionary dictionary];
for (NSString *identifier in [identifiers objectForKey:aClass]) {
[importsDict addEntriesFromDictionary:[imports objectForKey:identifier]];
}
[importsDict addEntriesFromDictionary:[imports objectForKey:aClass]];
return [importsDict allValues];
}