• 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: Properties and the runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properties and the runtime


  • Subject: Re: Properties and the runtime
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 29 Mar 2009 22:35:34 -0700

On Mar 29, 2009, at 10:21 PM, Luke the Hiesterman wrote:
So, if I declared a property called money and synthesized said property, would [object setMoney:money] and object.money = money compile to the same code? That, of course, implies that we're also inserting property-related code to simple method calls if they happen to correspond with a property.

They would compile to the same code, regardless.

@synthesize synthesizes the implementation of the methods only and that is where the runtime dependency is introduced.

Also, same question for if I declared a property and didn't synthesize (wrote my own getter/setter).

Same thing; the call site remains unchanged.

b.bum

_______________________________________________

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: Properties and the runtime
      • From: Luke the Hiesterman <email@hidden>
References: 
 >Properties and the runtime (From: Luke the Hiesterman <email@hidden>)
 >Re: Properties and the runtime (From: Bill Bumgarner <email@hidden>)
 >Re: Properties and the runtime (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Bug in CALayer Transition....?
  • Next by Date: Re: Properties and the runtime
  • Previous by thread: Re: Properties and the runtime
  • Next by thread: Re: Properties and the runtime
  • Index(es):
    • Date
    • Thread