Re: KVO autonotifying complaining about custom setter return value
Re: KVO autonotifying complaining about custom setter return value
- Subject: Re: KVO autonotifying complaining about custom setter return value
- From: mmalc crawford <email@hidden>
- Date: Wed, 5 Mar 2008 13:26:02 -0800
On Mar 5, 2008, at 11:40 AM, Jim Turner wrote:
But, I still appear to have an issue with defining a custom
getter/setter. Defining a property as
@property (setter=mySetMethod:,getter=myMethod) id valueTest;
and sending my object a valueTest message, I get the unrecognized
selector sent to instance warning.
Again this behaves correctly.
You've specified that the getter and setter are myMethod and
mySetMethod: respectively.
If you ask the compiler to synthesise the methods, those are what
you'll get, and they'll access the 'valueTest' instance variable.
You haven't specified a valueTest method anywhere...
mmalc
_______________________________________________
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