• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding Properties to NKIssue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Properties to NKIssue?


  • Subject: Re: Adding Properties to NKIssue?
  • From: Dave <email@hidden>
  • Date: Wed, 04 Jul 2012 21:31:57 +0100

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adding Properties to NKIssue?
      • From: Fritz Anderson <email@hidden>
References: 
 >Adding Properties to NKIssue? (From: Dave <email@hidden>)
 >Re: Adding Properties to NKIssue? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: opening file without an extension
  • Next by Date: Re: Adding Properties to NKIssue?
  • Previous by thread: Re: Adding Properties to NKIssue?
  • Next by thread: Re: Adding Properties to NKIssue?
  • Index(es):
    • Date
    • Thread