Re: core data/table column sorting question
Re: core data/table column sorting question
- Subject: Re: core data/table column sorting question
- From: John Timmer <email@hidden>
- Date: Mon, 20 Jun 2005 17:51:07 -0400
> When the program starts, I want the table view to be sorted by one of
> its columns so that the column is highlighted and has the little
> triangle in it. Also, if the user decides to sort another column, is
> there a way I can track that so that next time the document is
> loaded, I can set that column to be sorted with the highlight and
> triangle.
You can bind the sort descriptors to an object as NSData that's unarchived
via a transformer. If you've got a document based app that includes
document-wide preferences, put a variable in that to hold the descriptor -
otherwise, put it in your app's preferences. Works great.
JT
_______________________________________________
This mind intentionally left blank
_______________________________________________
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