• 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: Ugly bug in Foundation, beware!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Ugly bug in Foundation, beware!
      • From: Graham J Lee <email@hidden>
References: 
 >Re: Ugly bug in Foundation, beware! (From: Graham J Lee <email@hidden>)

  • Prev by Date: Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
  • Next by Date: Re: Ugly bug in Foundation, beware!
  • Previous by thread: Re: Ugly bug in Foundation, beware!
  • Next by thread: Re: Ugly bug in Foundation, beware!
  • Index(es):
    • Date
    • Thread