Re: Confusion with copyWithZone and Archiving
Re: Confusion with copyWithZone and Archiving
- Subject: Re: Confusion with copyWithZone and Archiving
- From: Doug Hill <email@hidden>
- Date: Mon, 29 Feb 2016 15:24:18 -0800
> On Feb 29, 2016, at 2:37 PM, Graham Cox <email@hidden> wrote:
>
>
>> On 1 Mar 2016, at 1:58 AM, Dave <email@hidden> wrote:
>>
>> @interface LTWBaseClass : NSView <NSCoding,NSCopying>
>
>
>> Do I need to call the super version of this method too?
>
>
>
> In general, yes. But NSView doesn’t conform to NSCopying, so there is no super to call. You’ll have to do all of the copying needed to copy the underlying view.
Given the amount of private implementation in NSView, my guess is that copying an NSView yourself without super support would be difficult/impossible in practice. However, I would be interested in others with more information to give an opinion.
Doug Hill
_______________________________________________
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