• 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
Binding userdefaults update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding userdefaults update


  • Subject: Binding userdefaults update
  • From: email@hidden
  • Date: Wed, 9 Feb 2005 14:53:50 +0100

hi!

i am using an NSArrayController to store the content for
a NSPopupButton. the content of the controller is itself bound
to the shared user defaults.
furthermore the "selectedIndex" property of the popup button is also
bound to the shared user defaults.

everything works fine if i change the selection of the popupbutton using the user interface.
but when i add another item for my NSPopupButton to the controller and then
set the selectedItem of the NSPopupButton programatically, this change is not stored in
the userdefaults.
is there something wrong with my binding or do i have
to write the value of selectedIndex also programatically using NSUserDefaults in this case? Why?


thanks
thomas

_______________________________________________
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


  • Follow-Ups:
    • Re: Binding userdefaults update
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: NSImage -> 1-bit NSBitmapImageRep
  • Next by Date: Storing 'clue' in NSViews
  • Previous by thread: Re: Do I need to use Distributed Objects or not?
  • Next by thread: Re: Binding userdefaults update
  • Index(es):
    • Date
    • Thread