obj-c, how do I create a property and synthesize an NSUInteger ?

Posted by Jules on Stack Overflow See other posts from Stack Overflow or by Jules
Published on 2011-01-16T14:39:02Z Indexed on 2011/01/16 15:53 UTC
Read the original article Hit count: 161

Filed under:
|

I'm having some trouble using an NSUInteger, I've tried various things and googled, but not found the answer ?

I have... I also tried ... nonatomic, retain

@property (readwrite, assign) NSUInteger *anAmount;

@synthesize anAmount;

error: type of property 'anAmount' does not match type of ivar 'anAmount'

Also when I release it in dealloc I get a warning..

warning: invalid receiver type 'NSUInteger'

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode