On 2 Jul 2012, at 22:27, Nick Zitzmann wrote:
On Jul 2, 2012, at 12:31 PM, Dave wrote:
Hi,
It is possible to add my own properties to the NKIssue Class? I
know it's possible in Objective-C but is it advisable? I was
thinking of something like this:
Yes and It Depends. You can't use @synthesize or add ivars in a
category, so you'll have to write the corresponding accessor method
(s) yourself.
Nick Zitzmann
Hi,
Thanks for your help, I'm not sure I get what you mean?
Given that I have defined a property:
@interface NKIssue (MyIssue)
@property (nonatomic,retain) NSMutableDictionary*
somethingSpecificToMyApp;
@end
I could then write the getter/setter:
-(void) setSomethingSpecificToMyApp:(NSMutableDictionary*) theDict
{
}
But where do I store the Dictionary? I can't add an iVar to the
NKIssue as this is not possible in Objective-C AFAIK.
All the Best
Dave
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com