Calling objc_getAssociatedObject in -finalize.
Calling objc_getAssociatedObject in -finalize.
- Subject: Calling objc_getAssociatedObject in -finalize.
- From: "email@hidden" <email@hidden>
- Date: Sat, 10 Mar 2012 11:19:13 +0000
Consider a GC app.
It is not safe to access object ivars during -finalize due to the uncertainty which self and the ivar objects will be finalised.
Question:
Is it safe to call objc_getAssociatedObject in -finalize or do the same caveats apply?
I have no real idea how the collector treats such associated objects.
My guess would be that it simply collects them like any other object and that objc_getAssociatedObject cannot be safely called in -finalize.
Regards
Jonathan Mitchell
Mugginsoft LLP
_______________________________________________
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