• 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: NSPointerArray on iOS - truly __weak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPointerArray on iOS - truly __weak?


  • Subject: Re: NSPointerArray on iOS - truly __weak?
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 10 Dec 2012 12:26:47 -0800

Bump. I'd still like to hear about this. The docs have a *huge* box saying that iOS NSPointerArray is not doing __weak references, but it sure looks to me like it is. But I don't know how to test. Thanks for any help. m.

On Fri, 30 Nov 2012 07:51:57 -0800, Matt Neuburg <email@hidden> said:
>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)?

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

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

  • Prev by Date: Re: How to implement readonly property
  • Next by Date: Re: clarification about document type extensions
  • Previous by thread: Re: What rect does NSTextFieldCell use to draw its contents?
  • Next by thread: Is it possible to read a file icon from iOS file system?
  • Index(es):
    • Date
    • Thread