Re: Saving the rows order of a table view
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