Re: Request for comments: Bindings to Class Objects
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.