Re: Synthesized ivar for std::tr1::shared_ptr<MyClass>?
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