• 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: Storing a table view in user defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing a table view in user defaults


  • Subject: Re: Storing a table view in user defaults
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 28 Apr 2009 13:55:21 -0700


On 2009 Apr 28, at 11:41, Ryan Briones wrote:

Sorry for not using the proper terminology. I have a table view whose columns are bound to an array controller (Controller Key: arrangedObjects, Model Key Path: name, etc) and the array controller is bound

You didn't say which binding. Should be the 'value' binding.

to shared user defaults (Controller key: values, Model Key Path: arrayOfThings). Also I have a button that send add: to the array controller and a button that sends delete: and "Enabled" is bound to canRemove: on the array controller. Seems like pretty standard setup from what I can tell.

Yes, it is. Sorry to be picking nits but what you've described is very similar to what I have done. The answer is going to be in a nit.


Add an item to your table, then gracefully quit your application. Open the file ~/Library/Preferences/com.myCompany.MyApp.plist with a plist editor and look at arrayOfThings.

_______________________________________________

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


References: 
 >Storing a table view in user defaults (From: Ryan Briones <email@hidden>)
 >Re: Storing a table view in user defaults (From: Jerry Krinock <email@hidden>)
 >Re: Storing a table view in user defaults (From: Ryan Briones <email@hidden>)

  • Prev by Date: Re: C string constant->NSString constant without defining twice?
  • Next by Date: Re: Why is NSString->FSRef so hard?
  • Previous by thread: Re: Storing a table view in user defaults
  • Next by thread: Re: Storing a table view in user defaults
  • Index(es):
    • Date
    • Thread