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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to