• 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: Bindings for NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Bindings for NSTextFields (From: "Bernd Carl" <email@hidden>)

  • Prev by Date: Interesting effect with NSKeyedArchiver archiveRootObject
  • Next by Date: Re: [NEWBIE] viewing implementation files
  • Previous by thread: Re: Bindings for NSTextFields
  • Next by thread: What to do with initWithFormat + an array
  • Index(es):
    • Date
    • Thread