• 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 with an NSObjectArray controller as one of it's keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaultsController with an NSObjectArray controller as one of it's keys


  • Subject: Re: NSUserDefaultsController with an NSObjectArray controller as one of it's keys
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 17 Nov 2004 03:00:43 -0500


On Nov 16, 2004, at 6:37 PM, John Spicer wrote:



I've got the above with the defaults controller having a key that's an array. This array is tied to a list for one of it's keys, and two other keys are attached to NSStepper objects. (I'm using bindings).

There are also two NSTextField's that take their value from the NSStepper.

Initial values are being set from the prefs (some names for the list, and zero values for the two NSSteppers).

The data loads OK, fills the list, sets the NSSteppers to zero values, and thus the NSTextField's are too.

But if I change the initial values (using the NSStepper's) and then click on another item in the list, the values for that item in the list are not loaded into the NSTextFields. You can't really run through the debugger to find out what's going on with the bindings, so I'm at a loss to figure out what's going on.

The NSSteppers are using "selection" and not arrangedObjects.

Array's from user defaults controllers are non mutable. this is likely where you're getting bitten. So you're array is non-mutable, and the dictionaries in the array are non-mutable.



BTW, are you ex Healthcare Communications??




_______________________________________________ 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 with an NSObjectArray controller as one of it's keys (From: John Spicer <email@hidden>)

  • Prev by Date: Re: Custom NSToolbarItem
  • Next by Date: NSTextView Caret Blinking Interval
  • Previous by thread: NSUserDefaultsController with an NSObjectArray controller as one of it's keys
  • Next by thread: how to make a finder-like button
  • Index(es):
    • Date
    • Thread