Re: Bindings for NSTextFields
Re: Bindings for NSTextFields
- Subject: Re: Bindings for NSTextFields
- From: Tim Lucas <email@hidden>
- Date: Mon, 18 Oct 2004 09:37:47 +1000
On 17/10/2004, at 9:59 PM, Bernd Carl wrote:
Hello,
I have some questions about bindings.
- Is it possible to have an NSMutableDictionary connected to two
NSTextFields that are bound to each other?
Try writing two transformers -- DictionaryIndexToKey and
DictionaryIndexToValue -- and binding each text field to
selectionIndex. You'll need some way of accessing your dictionary from
the transformers... and you might also need an action to do the saving,
as I don't think you'll be able to use the transformers to do the
reverse.
-- tim lucas
http://www.toolmantim.com
_______________________________________________
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