Re: NSArchiver question?
Re: NSArchiver question?
- Subject: Re: NSArchiver question?
- From: Jonathan Hess <email@hidden>
- Date: Thu, 26 Jun 2008 16:59:31 -0700
Hey Damien -
You should also consider using NSKeyedArchiver over NSArchiver.
NSKeyedArchiver is much more flexible and handles archive versioning
much better.
Jon Hess
On Jun 26, 2008, at 4:22 PM, Mike Abdullah wrote:
Yes, it is your responsibility to implement the NSCoding protocol in
your own classes.
On 27 Jun 2008, at 00:09, Damien Cooke wrote:
I am getting the following error from this line NSData *data =
[NSArchiver archivedDataWithRootObject:viewItem];
-[DCOViewItem encodeWithCoder:]: unrecognized selector sent to
instance 0x17fa00
do I need to override this method below for my class DCOViewItem to
use the NSArchiver class?
(void)encodeWithCoder:(NSCoder *)encoder
Regards
Damien
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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