When I look at some Apple header files, I notice that they declare multiple interfaces using categories for the same object.
For instance: NSDictionary.h
@interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
@end
@interface NSDictionary (NSExtendedDictionary)
@end
@interface NSDictionary (NSDictionaryCreation)
@end
Is this just a way to help organize code? As a user, there is no difference, all methods in all categories appear when using NSDictionary.
Is there any other useful result?
source
share