Re: copyWithZone - if anyone could explain this to me ?
Re: copyWithZone - if anyone could explain this to me ?
- Subject: Re: copyWithZone - if anyone could explain this to me ?
- From: Graham Cox <email@hidden>
- Date: Tue, 1 Dec 2009 21:28:03 +1100
On 01/12/2009, at 6:06 PM, Clark Cox wrote:
> True, but history is a powerful force. This is also why the
> documentation on NSCopyObject states:
>
> "This function is dangerous and very difficult to use correctly. It's
> use as part of copyWithZone: by any class that can be subclassed, is
> highly error prone. Under GC or when using Objective-C 2.0, the zone
> is completely ignored.
>
> This function is likely to be deprecated after Mac OS X 10.6."
That's interesting. When I earlier stated I though this function was dangerous, I hadn't actually read that - I'd just arrived at that conclusion. Nice to know I occasionally get something right ;-)
--Graham
_______________________________________________
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