NSKeyedArchiver and NSPoints
NSKeyedArchiver and NSPoints
- Subject: NSKeyedArchiver and NSPoints
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 28 Apr 2010 17:00:44 +0700
The following code raise an exception:
NSPoint p = NSMakePoint( 47, 11 );
NSValue *v = [ NSValue valueWithPoint: p ];
NSArray *a = [ NSArray arrayWithObject: v ];
NSData *d = [ NSKeyedArchiver archivedDataWithRootObject: a ];
// *** -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs
Using NSArchiver (without the "Keyed") works fine.
How am I supposed to save my array of points?
10.6.3.
Kind regards,
Gerriet.
_______________________________________________
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