• 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
Cocoa Bindings Issue: Help Needed.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Bindings Issue: Help Needed.


  • Subject: Cocoa Bindings Issue: Help Needed.
  • From: Chris Pavicich <email@hidden>
  • Date: Sat, 1 May 2004 01:30:13 -0400

Hi List:

I am trying to put together a simple bindings based app, and I have stumped myself. I am hoping that
someone can help out.

I have a model that looks like this:

MyController {
NSArray *configs;
Config *selectedConfig;
}

Config {
String *name;
NSMutableDictionary *configParameters;
}

I am trying to build a master-detail UI with:

* a popup button showing the name of each config

I have this working already, its being driven by an NSArrayController. Any change to the selection in the popup gets reflected
into the selectedConfig. I even managed to get it dynamically updating some NSTextFields.

* an NSTableView showing the key/value pairs of the selectedConfig's configParameters.

This I have having issues with. I've tried just about everything that seems reasonable to me, but still no luck.
Gut feeling tells me that I probably need (at least) another NSArrayController to handle the keys from the dictionary.

If anyone can point me in the right direction, or let me know where I am going wrong, it would be greatly appreciated.

--CMP
_______________________________________________
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.


  • Follow-Ups:
    • Re: Cocoa Bindings Issue: Help Needed.
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Three Views in a Row
  • Next by Date: Re: Sliding an image
  • Previous by thread: Re: Three Views in a Row
  • Next by thread: Re: Cocoa Bindings Issue: Help Needed.
  • Index(es):
    • Date
    • Thread