0
比如我在看CHMutableDictionary.h.h文件中的@interface后的{}是什么意思?
@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
它花括号CFMutableDictionaryRef dictionary
。但在Objective-C guide Properties Control Access to an Object’s Values它没有使用{}
提及任何在接口
@interface Person : NSObject
@property NSString *firstName;
@property NSString *lastName;
@end
所以我只是想知道什么的.h
文件接口在{}
定义的变量的意思。