4 ms·
You can use @public, @private, or @protected on the instance variables. Unfortunately these do not extend to the properties themselves and you have to use a dif
by rbritton 16y ago
You can use @public, @private, or @protected on the instance variables. Unfortunately these do not extend to the properties themselves and you have to use a different approach as in the sibling comment:
@interface SomeClass (SomePrivateCategory)
@property (nonatomic, assign) NSUInteger count;
...
@end
- chc 16y agoActually, Objective-C has class extensions for just this purpose. No need for a private category.