• 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: Request for comments: Bindings to Class Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for comments: Bindings to Class Objects


  • Subject: Re: Request for comments: Bindings to Class Objects
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sat, 21 Aug 2004 11:05:38 +0200

Le 20 ao{t 04, ` 16:04, mmalcolm crawford a icrit :

On Aug 20, 2004, at 5:19 AM, Thomas Lachand-Robert wrote:

I'm digging into bindings, and it is really amazing! I'm very impressed.
However I would like to ask for infos and comments about the use of bindings with class objects, since Apple's documentation doesn't tell anything about them. The motivation is that class objects are natural repositories for global variables, and therefore are natural respondents for the user preferences.

Binding to classes aside (I'll check on that one), NSUserDefaultsController is the natural repository for user preferences...




Generally speaking, yes, but not in my case (see the code example). Here I have a bunch of objects that not only use the value of the global user pref, but also need to be notified whenever this value changes. (A typical equivalent at the system level is the global control tint: when changed by the user, the system sends notifications and marks all windows for redraw.) This is why I need a repository for the value. Or is there a better way?



Thomas Lachand-Robert ********************** email@hidden << Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe. _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Dealing with Subversion (Berkeley DB) Recovery
  • Next by Date: re: What is the <username>.mode1 file used for in Xcode project
  • Previous by thread: Re: Subversion suggestion for Tiger (10.4)
  • Next by thread: Re: Request for comments: Bindings to Class Objects
  • Index(es):
    • Date
    • Thread