Re: objc_atomicCompareAndSwapInstanceVariable
Re: objc_atomicCompareAndSwapInstanceVariable
- Subject: Re: objc_atomicCompareAndSwapInstanceVariable
- From: André Berg <email@hidden>
- Date: Sat, 03 Oct 2009 15:42:06 +0200
Thanks Greg! This really clears up a lot! And also thanks about
clarifying the bit about the objc->ivar syntax. Seems I jumped to
conclusions when I accidentally tried to access another object's ivar
that way.
Personally I think you're doing a great job with the GC, Dispatch and
Blocks support! These are extremely exciting times to be a Mac developer
and I am glad I made the switch.
Keep it up :)
André
--- Original Nachricht ---
Absender: Greg Parker
Datum: 03.10.2009 11:39 Uhr
(If you use the OSAtomic functions directly with GC-scanned storage,
then you can confuse the garbage collector which may delete your
objects unexpectedly.)
`obj->ivar` is perfectly legal, as long as you respect the ivar's
access permissions. You won't get a warning if you access the class's
own @private ivars, or its superclass's @protected ivars, or any other
class's @package or @public ivars.
_______________________________________________
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