• 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
Re: @dynamic and Programmatic Access to Setters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: @dynamic and Programmatic Access to Setters
      • From: Mike Rossetti <email@hidden>
References: 
 >@dynamic and Programmatic Access to Setters (From: Mike Rossetti <email@hidden>)

  • Prev by Date: @dynamic and Programmatic Access to Setters
  • Next by Date: Re: @dynamic and Programmatic Access to Setters
  • Previous by thread: @dynamic and Programmatic Access to Setters
  • Next by thread: Re: @dynamic and Programmatic Access to Setters
  • Index(es):
    • Date
    • Thread