• 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: Saving the rows order of a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving the rows order of a table view


  • Subject: Re: Saving the rows order of a table view
  • From: Stéphane Sudre <email@hidden>
  • Date: Fri, 21 Oct 2005 22:33:27 +0200


On vendredi, octobre 21, 2005, at 09:40 PM, Thom Meijer wrote:

Hello,
I have a table view which is able to sort its rows according to column
headers. However, I don't know how to remember the actual order when I
quit and re-launch the app.
I also saw in IB this "Autosave Name" and I thought that I'll just
type-in few letters and that's it but every time I get an error
"Column identifiers used with NSTableView autosave feature must
conform to NSCoding protocol." Hmm...
Any help greatly appreciated.

The way I do this kind of thing is to save the sort order and column identifier manually in the NSUserDefaults when - (void)tableView:(NSTableView*)tableView didClickTableColumn:(NSTableColumn *)tableColumn is invoked. (After having switched the sort order or the column identifier if needed).



_______________________________________________ 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
References: 
 >Saving the rows order of a table view (From: Thom Meijer <email@hidden>)

  • Prev by Date: Re: Binding to CoreImage?
  • Next by Date: Re: Core Data: Dual-Inverse Relation Possible in Modeler?
  • Previous by thread: Saving the rows order of a table view
  • Next by thread: Re: Saving the rows order of a table view
  • Index(es):
    • Date
    • Thread