Re: Restoring sort order to NSTableView
Re: Restoring sort order to NSTableView
- Subject: Re: Restoring sort order to NSTableView
- From: mmalc crawford <email@hidden>
- Date: Tue, 20 Nov 2007 05:40:48 -0800
On Nov 20, 2007, at 5:13 AM, Trygve Inda wrote:
NSData *sortOrderDesc = [NSArchiver archivedDataWithRootObject:
[myTableView
sortDescriptors]];
[prefs setObject:sortOrderDesc forKey:@"sortOrderDesc"];
Why do I have to do it this way if NSSortDescriptor conforms to
NSCoding?
Because it's not automatically archived if you just set the value
directly with setObject:forKey:...
mmalc
_______________________________________________
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