2 ms·
You can define a category within your implementation file (.m) and redeclare the property like this: @interface MyClass (PrivateMethods) @property(readwrite,
by betamike 16y ago
You can define a category within your implementation file (.m) and redeclare the property like this:
@interface MyClass (PrivateMethods)
@property(readwrite, retain) NSObject *myProperty;
@end
@implementation MyClass
...
Now only your implementation knows about the generated setter methods, and you don't have to implement them yourself.