• 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
Autosaving the selection in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autosaving the selection in an NSTableView


  • Subject: Autosaving the selection in an NSTableView
  • From: Martin Stanley <email@hidden>
  • Date: Sun, 12 Apr 2009 23:32:53 -0400

I have a core-data document-based application that uses a NSTableView with an NSArrayController as its data source. I have managed to figure out the magic IB incantations required to save the column sort, order and hidden data to the shared NSDeafulsController.

What I would like to do is to also save the current selection of the table across application invocations. I have tried the obvious:
- bind the array controller's selected indexes to the Shared Defaults controller - no luck
- bind the tableview's selected indexes to the Shared Defaults controller - no luck
I even tried to get the select programmatically, but when I tried the callback methods I thought appropriate:
- windowControllerDidLoadNib
- applicationDidFinishLaunching
I found that the array controller was not yet loaded with data and therefore had no selection.


Can anyone shed some light on this?

Thanks,
Martin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Autosaving the selection in an NSTableView
      • From: Sandy McGuffog <email@hidden>
    • Re: Autosaving the selection in an NSTableView
      • From: Volker in Lists <email@hidden>
  • Prev by Date: Re: Dynamically getting the type of ivars
  • Next by Date: Re: Best way to pass large objects between tasks?
  • Previous by thread: Re: typeFromFileExtension in Leopard SDK
  • Next by thread: Re: Autosaving the selection in an NSTableView
  • Index(es):
    • Date
    • Thread