• 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: Confusion with copyWithZone and Archiving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Confusion with copyWithZone and Archiving
      • From: Graham Cox <email@hidden>
References: 
 >Confusion with copyWithZone and Archiving (From: Dave <email@hidden>)
 >Re: Confusion with copyWithZone and Archiving (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Confusion with copyWithZone and Archiving
  • Next by Date: Is Core Data / NSAtomicStore only for data objects with IDs?
  • Previous by thread: Re: Confusion with copyWithZone and Archiving
  • Next by thread: Re: Confusion with copyWithZone and Archiving
  • Index(es):
    • Date
    • Thread