NSPointerArray on iOS - truly __weak?
NSPointerArray on iOS - truly __weak?
- Subject: NSPointerArray on iOS - truly __weak?
- From: Matt Neuburg <email@hidden>
- Date: Fri, 30 Nov 2012 07:51:57 -0800
The docs for NSPointerArray say, in a big bold box right at the top:
> Important: NSPointerArray does not support weak references under Automatic Reference Counting (ARC).
However, a [NSPointerArray weakObjectsPointerArray] does NULL an element that has been released through ARC; I can test this directly, and I've also been using NSPointerArray successfully to break retain cycles. So are the docs just lying (in a big bold box right at the top), or is this some other kind of weak reference (i.e. somehow weak, but not ARC-__weak)?
m.
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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