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