• 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
Re: Restoring sort order to NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Restoring sort order to NSTableView (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Why is Leopard annoying my users?
  • Next by Date: Re: KVO problems popping up in Leopard - KVO notifying a released object I never owned
  • Previous by thread: Re: Restoring sort order to NSTableView
  • Next by thread: Ruby/Python - mixed language apps, and garbage collection
  • Index(es):
    • Date
    • Thread