Re: @dynamic and Programmatic Access to Setters
Re: @dynamic and Programmatic Access to Setters
- Subject: Re: @dynamic and Programmatic Access to Setters
- From: Jack Repenning <email@hidden>
- Date: Thu, 17 Apr 2008 20:26:11 -0700
On Apr 17, 2008, at 8:15 PM, Mike Rossetti wrote:
Bindings clearly work so I'm surprised the setTipName isn't
synthesized and available for my use.
You haven't given us enough info to be sure that tipName works in any
sense, prior to your added class method that you mention. So when you
say "binding works," I don't know if that means anything more than "no
one actually complains."
As I understand it, @dynamic is different from @synthesize. While
@synthesize actually ... well ... synthesizes the accessor
definitions, @dynamic only promises that someone else will; it's sorta
like "@class", meaning "pretend you saw the definitions; trust me!"
If you don't ever actually provide the definitions, then they never
actually exist, and that of course turns ugly once you start trying to
use them (or copy them to the clipboard).
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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