• 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: NSUserDefaultsController problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaultsController problems


  • Subject: Re: NSUserDefaultsController problems
  • From: Brian Stern <email@hidden>
  • Date: Fri, 21 Apr 2006 18:36:59 -0400

>In the case that's not working I'm storing an array containing dictionaries
>containing simple values.  I think that is somehow part of the problem.

OK, mmalc pointed me to an explanation of this.

Turns out I only have to turn on the "Handles Content as compound value"
and "Validates immediately" options for the NSArrayControllers that are
bound to the shared user defaults controller.  The first option is required
for array controllers that manage arrays in user defaults or that manage
arrays containing dictionaries in user defaults (on Tiger).  If a popup is
bound to the array controller and validates immediately isn't turned on
notifications of the changed value are sent, in response to changing the
selected item in the UI, but the value hasn't actually changed in the user
defaults controller.

Thanks,

--
Brian  Stern
email@hidden
 _______________________________________________
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: 
 >NSUserDefaultsController problems (From: Brian Stern <email@hidden>)
 >Re: NSUserDefaultsController problems (From: mmalcolm crawford <email@hidden>)
 >Re: NSUserDefaultsController problems (From: Brian Stern <email@hidden>)

  • Prev by Date: Re: Creating a framework with objective-c and cocoa
  • Next by Date: Re: convert GraphicsImportComponent to NSImage
  • Previous by thread: Re: NSUserDefaultsController problems
  • Next by thread: convert GraphicsImportComponent to NSImage
  • Index(es):
    • Date
    • Thread