Re: Bindings for NSTextFields
Re: Bindings for NSTextFields
- Subject: Re: Bindings for NSTextFields
- From: Scott Stevenson <email@hidden>
- Date: Sun, 17 Oct 2004 14:58:40 -0700
On Oct 17, 2004, at 4:59 AM, Bernd Carl wrote:
I have some questions about bindings.
- Is it possible to have an NSMutableDictionary connected to two
NSTextFields that are bound to each other? What it does is this: One
TF is
the key, the other the value. Whenever a key is entered, it should be
checked for existance or added if it is new.
Binding to dictionary keys is difficult. You're probably better off
doing that part manually. It is, however, easy enough to bind the
*value* field to a key like:
controller.theDictionary.userSuppliedKey
And implement something like:
- (id) userSuppliedKey
{
return [keyTextField stringValue];
}
Hope that helps.
- Scott
--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]
_______________________________________________
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