Re: Ugly bug in Foundation, beware!
Re: Ugly bug in Foundation, beware!
- Subject: Re: Ugly bug in Foundation, beware!
- From: Brent Gulanowski <email@hidden>
- Date: Thu, 3 Jun 2004 11:01:43 -0400
On Jun 3, 2004, at 10:36 AM, Graham J Lee wrote:
>
On 2004-06-03 15:10:23 +0100 Ondra Cada <email@hidden> wrote:
>
>
> Clark,
>
> On 3.6.2004, at 15:38, Clark Cox wrote:
>
>> I'm not sure I'd call this a bug.
>
> I am.
>
>
Comments about circular references aside....
>
>
NSMutableArray *a;
>
>
a=[NSMutableArray arrayWithObject:[NSHost currentHost]];
>
>
Forgive me if I'm being silly, but how would you deep copy that?
>
NSHost doesn't conform to NSCopying.
>
>
Cheers,
>
>
Graham.
Collections are smart enough to ask a class if it conforms to NSCopying
protocol.
--
Brent Gulanowski email@hidden
[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.