Re: Cocoa Bindings Issue: Help Needed.
Re: Cocoa Bindings Issue: Help Needed.
- Subject: Re: Cocoa Bindings Issue: Help Needed.
- From: Fritz Anderson <email@hidden>
- Date: Mon, 3 May 2004 10:37:36 -0500
Using the NSArrayController that references your MyController's
configs, bind the value of an NSTableColumn to "selectedConfig.<foo>",
where <foo> is one of the keys you use in the dictionary.
-- F
On 1 May 2004, at 12:30 AM, Chris Pavicich wrote:
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.
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.