Skip to content

Commit

Permalink
Fixed dorset indexing for categories. Closes tomaz#120.
Browse files Browse the repository at this point in the history
The problem was in tokens.xml files which used only class name when composing identifier strings for categories and their members.

Note: My quick testing confirms this working, but if anyone experiences issues with category members, let me know - either comment this issue or create a new one.
  • Loading branch information
tomaz committed Sep 1, 2011
1 parent 0fb82df commit c75e26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Generating/GBDocSetOutputGenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ - (NSString *)tokenIdentifierForObject:(GBModelBase *)object {
NSString *objectName = [(GBClassData *)object nameOfClass];
return [NSString stringWithFormat:@"//apple_ref/occ/cl/%@", objectName];
} else if ([object isKindOfClass:[GBCategoryData class]]) {
NSString *objectName = [(GBCategoryData *)object nameOfClass];
NSString *objectName = [(GBCategoryData *)object idOfCategory];
return [NSString stringWithFormat:@"//apple_ref/occ/cat/%@", objectName];
} else {
NSString *objectName = [(GBProtocolData *)object nameOfProtocol];
Expand All @@ -326,7 +326,7 @@ - (NSString *)tokenIdentifierForObject:(GBModelBase *)object {
objectName = [(GBClassData *)parent nameOfClass];
objectID = ([(GBMethodData *)object methodType] == GBMethodTypeClass) ? @"cl" : @"inst";
} else if ([parent isKindOfClass:[GBCategoryData class]]) {
objectName = [(GBCategoryData *)parent nameOfClass];
objectName = [(GBCategoryData *)parent idOfCategory];
objectID = @"intf";
} else {
objectName = [(GBProtocolData *)parent nameOfProtocol];
Expand Down

0 comments on commit c75e26f

Please sign in to comment.