• 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
Correct way to overide synthesized setter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct way to overide synthesized setter?


  • Subject: Correct way to overide synthesized setter?
  • From: Chris Tracewell <email@hidden>
  • Date: Sun, 28 Feb 2010 08:23:38 -0800

I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. Is the correct way to do this to override the synthesized setter of A like so?

-(void)setA:(id)value
	{
	A = value
	[self setB:A.keypath];
	}

Thanks.
_______________________________________________

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: Correct way to overide synthesized setter?
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Correct way to overide synthesized setter?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSWindow - makeKeyAndOrderFront problem
  • Next by Date: Re: Correct way to overide synthesized setter?
  • Previous by thread: Core Data 10.5 Mapping error 134140. Troubleshooting, "Value Expressions"?
  • Next by thread: Re: Correct way to overide synthesized setter?
  • Index(es):
    • Date
    • Thread