Re: @dynamic and Programmatic Access to Setters
Re: @dynamic and Programmatic Access to Setters
- Subject: Re: @dynamic and Programmatic Access to Setters
- From: Quincey Morris <email@hidden>
- Date: Thu, 17 Apr 2008 22:07:26 -0700
On Apr 17, 2008, at 20:15, Mike Rossetti wrote:
Then I add a class method that creates a new Tip and tries the
following assignment (two approaches shown):
newTip.tipName = @"FUBAR";
[newTip setTipName:@"FUBAR"];
It would be interesting to know if, at the point of the error, the
getter failed as well as the setter.
It would be interesting to know if [newTip setValue:@"FUBAR"
forKey:@"tipName"] also failed.
It would be interesting to know if the setter fails on fetched
(existing) Tips, or just on newly created ones.
Both cause a runtime error:
-[tip setTipName:]: unrecognized selector sent to instance
Is that the exact error message, or is it [Tip setTipName]? "tip"
seems inexplicable.
_______________________________________________
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