Re: NSPointerArray on iOS - truly __weak?

2013-01-22 Thread Mike Abdullah

On 10 Dec 2012, at 20:26, Matt Neuburg m...@tidbits.com wrote:

 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 m...@tidbits.com 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)?

I spotted this elsewhere in the docs today:

 Starting in OS X v10.8, the Foundation framework offers the following 
 features and enhancements:
 
 Support for zeroing weak references with enhancements to the NSMapTable, 
 NSHashTable, and NSPointerArray classes.

So I guess the regular docs just haven't been updated yet.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSPointerArray on iOS - truly __weak?

2013-01-22 Thread Matt Neuburg
That just repeats the question - as I said (and you quoted), are the docs just 
lying? The point is that I prefer not to guess. I would like to be told 
officially that on iOS (not Mac OS X) these classes are doing ARC-__weak 
references under ARC when asked for weak behavior. m.

On Jan 22, 2013, at 7:08 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote:

 
 On 10 Dec 2012, at 20:26, Matt Neuburg m...@tidbits.com wrote:
 
 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 m...@tidbits.com 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)?
 
 I spotted this elsewhere in the docs today:
 
 Starting in OS X v10.8, the Foundation framework offers the following 
 features and enhancements:
 
 Support for zeroing weak references with enhancements to the NSMapTable, 
 NSHashTable, and NSPointerArray classes.
 
 So I guess the regular docs just haven't been updated yet.

--
matt neuburg, phd = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSPointerArray on iOS - truly __weak?

2013-01-22 Thread Kyle Sluder
On Tue, Jan 22, 2013, at 07:54 AM, Matt Neuburg wrote:
 That just repeats the question - as I said (and you quoted), are the
 docs just lying? The point is that I prefer not to guess. I would like
 to be told officially that on iOS (not Mac OS X) these classes are doing
 ARC-__weak references under ARC when asked for weak behavior. m.

The OS X Release Notes are considered part of the official
documentation.

File a bug against the docs, but don't assume that the Release Notes are
lying to you.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSPointerArray on iOS - truly __weak?

2012-12-10 Thread Matt Neuburg
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 m...@tidbits.com 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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NSPointerArray on iOS - truly __weak?

2012-11-30 Thread Matt Neuburg
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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com