Re: NSObjectController and NSDefaultsController Binding?
Re: NSObjectController and NSDefaultsController Binding?
- Subject: Re: NSObjectController and NSDefaultsController Binding?
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 17 Apr 2004 21:38:43 -0700
On Apr 17, 2004, at 2:53 PM, Bruce Truax wrote:
Is it possible to use both an NSObjectController and
NSDefaultsController to
bind the value of a NETextEdit field to your model object and the
defaults
controller simultaneously? If the answer is yes, are there any special
tricks to make this work? It looks to me like you can only select one
type
of binding for the value parameter at a time.
You can only bind an NSTextField's 'value' to one value at a time.
If you want to display a value combining information from multiple
sources (in this case the model and user defaults) you can use the
'displayPatternValue' binding:
<
http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/index.html>
<
http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/Concepts/BindingTypes.html>
and in particular "Value With Pattern" at:
<
http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/BindingsText/NSTextField.html>
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.