• 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 ivar for std::tr1::shared_ptr<MyClass>?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>?


  • Subject: Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>?
  • From: Greg Parker <email@hidden>
  • Date: Fri, 7 May 2010 16:46:25 -0700

On May 7, 2010, at 4:25 PM, Barry Wark wrote:
> Yes! That's the ticket. I hadn't realized that the runtime still
> provided non-fragile ivar support even when you explicitly declared
> the ivar. Leave it to the runtime guru. Thanks, Greg.

That's right. On iPhone OS devices and 64-bit Mac, all ivars are non-fragile. No exceptions[1]. Auto-synthesized property ivars are intended to shorten your code, and provide one way to move ivars out of header files for better encapsulation. (Other ways to keep ivars out of header files are in the works, for cases that are too simple or too complex to use synthesized properties.)

[1] Exception: isa. It still needs to be at offset zero.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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

References: 
 >Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Barry Wark <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Sherm Pendley <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Barry Wark <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Greg Parker <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Kyle Sluder <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Greg Parker <email@hidden>)
 >Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>? (From: Barry Wark <email@hidden>)

  • Prev by Date: Re: Problem mac os X version 10.6 when using sprinft
  • Next by Date: UIImage, UIColor colorWithPatternImage:, and PNG transparency
  • Previous by thread: Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>?
  • Next by thread: Re: Utility/Floating window with titlebar on left side
  • Index(es):
    • Date
    • Thread