• 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: Synthesized instance variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synthesized instance variables


  • Subject: Re: Synthesized instance variables
  • From: Andreas Känner <email@hidden>
  • Date: Thu, 12 Mar 2009 17:27:28 +0100


Am 11.03.2009 um 17:02 schrieb Jean-Daniel Dupas:


Le 11 mars 09 à 16:03, Andreas Känner a écrit :

Hi,

Am 11.03.2009 um 13:27 schrieb Jean-Daniel Dupas:

Le 11 mars 09 à 13:10, Andreas Känner a écrit :

Hi there,

does anybody know if there is an efficient way to directly access instance variables which have been synthesized for the 64bit runtime? Using object_getInstanceVariable is 10 times slower than the code the compiler generates for the synthesized getter.

What prevent you to use the synthesized getter ?


I want to override the synthesized getter to create a value on demand.

Regards,
Andreas

Good reason.
And what prevent you to simply declare the ivar in the interface instead of letting the compiler generating it ?




I don't want to make this implementation detail visible to the outside (in the header). It would help if ivars could be declared in categories but this is not possible.


Any other suggestion?

Andreas

_______________________________________________

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: Synthesized instance variables
      • From: Bill Bumgarner <email@hidden>
    • Re: Synthesized instance variables
      • From: Roland King <email@hidden>
References: 
 >Synthesized instance variables (From: Andreas Känner <email@hidden>)
 >Re: Synthesized instance variables (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Synthesized instance variables (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Garbage collected and non-garbage collected
  • Next by Date: [MEET] CocoaHeads-NYC meeting Thu 03/12
  • Previous by thread: Re: Synthesized instance variables
  • Next by thread: Re: Synthesized instance variables
  • Index(es):
    • Date
    • Thread