• 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
Save table sort order to User Defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Save table sort order to User Defaults


  • Subject: Save table sort order to User Defaults
  • From: Peter Schols <email@hidden>
  • Date: Tue, 24 May 2005 18:21:03 +0200

Hi,

Is there an easy way to save the sort order of a table to the user defaults?
Binding the ArrayController's sortDescriptors key to a key in the user defaults controller does not seem to work. When sorting the table, I get the following message:
*** -[NSUserDefaults setObject:forKey:]: Attempt to insert non- property value '((year, ascending, compare:))' of class 'NSCFArray'.


Of course I could save the sortDescriptors array manually but I was wondering if there's an elegant bindings solution to this problem.

TIA

Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Save table sort order to User Defaults
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: FYI: User feedback for LSMinimumSystemVersion
  • Next by Date: Re: International date formatting
  • Previous by thread: Re: Dynamic User Interface with Cocoa
  • Next by thread: Re: Save table sort order to User Defaults
  • Index(es):
    • Date
    • Thread