Confusion with copyWithZone and Archiving
Confusion with copyWithZone and Archiving
- Subject: Confusion with copyWithZone and Archiving
- From: Dave <email@hidden>
- Date: Mon, 29 Feb 2016 14:58:36 +0000
Hi,
I have an inheritance chain Classes that are NSCoding and NSCopying compliant like so:
@interface LTWBaseClass : NSView <NSCoding,NSCopying>
@interface LTWSubclassA : LTWBaseClass <NSCoding,NSCopying>
@interface LTWSubclassB : LTWSubclassA <NSCoding,NSCopying>
Each of these three classes contain properties that need to be archived and unarchived. In initWithCoder and encodeWithCoder methods I call [super initWithCoder] and [super encodeWithCoder], but I’m not sure what to do for copyWithZone? Do I need to call the super version of this method too?
Thanks a lot, All the Best
Dave
_______________________________________________
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