• 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
Bindings and a dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings and a dictionary


  • Subject: Bindings and a dictionary
  • From: Tim Gray <email@hidden>
  • Date: Thu, 8 Jun 2006 18:01:38 -0400

Hi, I'm still trying to get bindings to work for me.  I've gotten a lot further since the last time I wrote, but am having some difficulties with a dictionary.

The program I'm writing simply displays data read out of a selected IFF file.  I currently have it set up with an AppController.m that holds an instance] of myIFFfile.  myIFFfile has a bunch of ivars in it.  Using an NSObjectController whose contentObject is set to [Bind to: AppController and ModelKeyPath: myIFFfile], I have the ivars of myIFFFile showing up fine in the textFields that are bound to them.

However, myIFFFile has a dictionary ivar (myIFFdictionary) whose contents I'd like to access.  I thought I would be able to bind a textfield to myIFFdictionary.key, where key is key for the object I wanted to access in the dictionary, but that doesn't work.   All the objects in the dictionary are strings.  Anybody know what I'm doing wrong?

Thanks!
 _______________________________________________
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

  • Prev by Date: Re: NSComboBox -- How do I limit user typing to what is in the list
  • Next by Date: Re: NSComboBox -- How do I limit user typing to what is in the list
  • Previous by thread: Re: NSComboBox -- How do I limit user typing to what is in the list
  • Next by thread: Re: Bindings and a dictionary
  • Index(es):
    • Date
    • Thread