How to make an private property?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-04T20:30:23Z Indexed on 2010/05/04 21:28 UTC
Read the original article Hit count: 165

Filed under:

I tried to make a private property in my *.m file:

@interface MyClass (Private)
@property (nonatomic, retain) NSMutableArray *stuff;
@end

@implementation MyClass
@synthesize stuff; // not ok

Compiler claims that there's no stuff property declared. But there's a stuff. Just in an anonymous category. Let me guess: Impossible. Other solutions?

© Stack Overflow or respective owner

Related posts about objective-c