For example I was looking at CHMutableDictionary.h
@interface CHMutableDictionary : NSMutableDictionary {
CFMutableDictionaryRef dictionary; // A Core Foundation dictionary.
}
- (id) initWithCapacity:(NSUInteger)numItems;
- (NSUInteger) count;
- (NSEnumerator*) keyEnumerator;
- (id) objectForKey:(id)aKey;
- (void) removeAllObjects;
- (void) removeObjectForKey:(id)aKey;
- (void) setObject:(id)anObject forKey:(id)aKey;
@end
And it curly brackets CFMutableDictionaryRef dictionary
. But in the Objective-C guide Properties Control Access to an Object’s Values it doesn't make any mention of using {}
in interfaces
@interface Person : NSObject
@property NSString *firstName;
@property NSString *lastName;
@end
So I was just wondering what variables defined in {}
in interfaces of .h
files mean.