• 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: core data/table column sorting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >core data/table column sorting question (From: Alan Donsky <email@hidden>)

  • Prev by Date: Re: NSLog doesn't work with OCUnit
  • Next by Date: Re: NSLog doesn't work with OCUnit
  • Previous by thread: core data/table column sorting question
  • Next by thread: Fwd: core data/table column sorting question
  • Index(es):
    • Date
    • Thread