> On Feb 29, 2016, at 2:37 PM, Graham Cox <[email protected]> wrote: > > >> On 1 Mar 2016, at 1:58 AM, Dave <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
