• 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
saving table column width, order, and sort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

saving table column width, order, and sort


  • Subject: saving table column width, order, and sort
  • From: Ken Victor <email@hidden>
  • Date: Fri, 2 Dec 2005 16:58:24 -0800

given a multi-window multi-doc doc based app in which several windows have table views and it is desired to save the state (column order, width, and sort), is it really appropriate to save the state information in the app's preference file (as happens when using NSTableView setAutoSaveName])?

ie, it seems to me that over time the pref file will just grow as the user accesses more docs. wouldn't it be better to save this information in the doc iteself? but i don't see how to do this easily? i realize that i can fairly easily save the sort information by obtaining and archiving the sort descriptors for the table, but i don't see an easy way to save/archive the column order and width. (and i still want to believe that cocoa makes simple things easy... :-) )

also, i note that if i do a save-as that the table state is not saved properly. am i expected to change the autosave name for any windows when the user does a save-as?

thanx,
ken
_______________________________________________
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
  • Prev by Date: Re: NSXMLNode's `stringValue' method and memory leaks
  • Next by Date: Re: NSXMLNode's `stringValue' method and memory leaks
  • Previous by thread: Re: NSXMLNode's `stringValue' method and memory leaks
  • Next by thread: binding to a controller not in my nib, how?
  • Index(es):
    • Date
    • Thread