Re: Ugly bug in Foundation, beware!
Re: Ugly bug in Foundation, beware!
- Subject: Re: Ugly bug in Foundation, beware!
- From: Clark Cox <email@hidden>
- Date: Thu, 3 Jun 2004 11:07:33 -0400
On Jun 03, 2004, at 10:21, Ondra Cada wrote:
>
Nicko,
>
>
On 3.6.2004, at 15:52, Nicko van Someren wrote:
>
>
> The array class knows nothing of the objects it holds...
>
>
Exactly. And that's the very reason to make an immutable copy it MUST
>
send the objects -copy, storing whatever they return.
What about objects that do not conform to the NSCopying protocol?
id myDocumentArray = [[[NSDocumentController sharedDocumentController]
documents] copy];
id myWindowArray = [[NSApp windows] copy];
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.