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

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


  • Follow-Ups:
    • Re: Confusion with copyWithZone and Archiving
      • From: Graham Cox <email@hidden>
    • Re: Confusion with copyWithZone and Archiving
      • From: Doug Hill <email@hidden>
  • Prev by Date: Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback
  • Next by Date: Re: Confusion with copyWithZone and Archiving
  • Previous by thread: Re: windowDidLoad getting called twice?
  • Next by thread: Re: Confusion with copyWithZone and Archiving
  • Index(es):
    • Date
    • Thread