• 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: Cocoa Bindings & GUI question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Bindings & GUI question


  • Subject: Re: Cocoa Bindings & GUI question
  • From: Nicolas Berloquin <email@hidden>
  • Date: Wed, 18 May 2005 11:25:49 +0200

I have a related question about bindings and user defaults.
I use bindings for my prefs window that bind to NSUserDefaults
that are registered in my NSApplication (with registerDefaults: ).
For example, let's say that one of the values is a number that is
shown in an editable NSTextField.
My question is :
In IB, in the bindings pane, should I set a value for 'Null Placeholder',
and should I enter a value in the control also ? Or should I completely
rely on the registered defaults ?


thanks.

On May 16, 2005, at 7:15 PM, Scott Anguish wrote:


On May 16, 2005, at 10:03 AM, Jesus De Meyer wrote:


Bind your master checkbox's 'value' attribute to your model (e.g. user defaults) with whatever key path you want. Then, for each of the checkboxes in your group, bind their 'enabled' attribute to your model to the same key path as for your master checkbox.



Thanks for the tip. I noticed that there 2 kinds of userdefaults: NSUserDefaultsController and the Shared User Defaults. Which one should I use? I have seen in some examples that they use the shared one, so what's the use of the other one?

Shared User Defaults is an instance of NSUserDefaultsController that uses the standard user defaults for the application. NSUserDefaultsController can be configured in a number of different ways (for example, you can specify a different NSUserDefaults instance to use).


    So, use eh Shared User Defaults

 _______________________________________________
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

_______________________________________________ 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: Cocoa Bindings & GUI question
      • From: Scott Anguish <email@hidden>
References: 
 >Cocoa Bindings & GUI question (From: Jesus De Meyer <email@hidden>)
 >Re: Cocoa Bindings & GUI question (From: Ricky Sharp <email@hidden>)
 >Re: Cocoa Bindings & GUI question (From: Jesus De Meyer <email@hidden>)
 >Re: Cocoa Bindings & GUI question (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Figuring out which values are selected in an NSTableView
  • Next by Date: Re: Figuring out which values are selected in an NSTableView
  • Previous by thread: Re: Cocoa Bindings & GUI question
  • Next by thread: Re: Cocoa Bindings & GUI question
  • Index(es):
    • Date
    • Thread