• 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: NSArrayController, bindings and NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController, bindings and NSUserDefaults


  • Subject: Re: NSArrayController, bindings and NSUserDefaults
  • From: Volker in Lists <email@hidden>
  • Date: Sun, 9 Nov 2008 22:05:45 +0100

Hi,

you need an formatter - NSUnarchiveFromData and then it works rather well. I store supplementary information that each user can edit in NSUserDefaults. The info is maintained in NSTableViews and stored as an Array of NSMutableDictionary. Works really well.

Volker

Am 09.11.2008 um 20:41 schrieb Andre Masse:

I think you need to archive and unarchive when you read and write each key in your dictionary.

The array controller model key path is an array of objects, so it don't need any value transformer, right?. Now, somehow somewhere it will need to unarchive a particular object to get at a member's value. This is where it bites, how can I set the key path for, let's say the userName, when this value is encoded somewhere inside the fully encoded NSData object?

_______________________________________________

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: NSArrayController, bindings and NSUserDefaults
      • From: Andre Masse <email@hidden>
References: 
 >NSArrayController, bindings and NSUserDefaults (From: Andre Masse <email@hidden>)
 >Re: NSArrayController, bindings and NSUserDefaults (From: Steven Riggs <email@hidden>)
 >Re: NSArrayController, bindings and NSUserDefaults (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: MVC Question . . .
  • Next by Date: NSGraphiteControlTint in app
  • Previous by thread: Re: NSArrayController, bindings and NSUserDefaults
  • Next by thread: Re: NSArrayController, bindings and NSUserDefaults
  • Index(es):
    • Date
    • Thread