is NSDictionaryController the solution to my problem ?
is NSDictionaryController the solution to my problem ?
- Subject: is NSDictionaryController the solution to my problem ?
- From: Louis Demers <email@hidden>
- Date: Thu, 26 Feb 2009 01:55:15 -0500
Hi,
my app has a NSMutableDictionary to which I had/remove/modify keys/
value pairs. The value is a custom NSObject class. I need to display
the key/value into a NSTableView , one key per line, four columns
because my custom object/value has four values I need to display.
I use (for the first time) a NSDictionaryController and bindings.
My app has an instance of NSDictionaryController and my
NSMutabledictionary.
I set the content of the NSDictionaryController to the
NSMutabledictionary (through IB)
when I do
NSLog(@"projectsController content = %@",[ [self projectsController]
content]);
I see the controller has the key/value pairs setup correctly
I set the columns in the table view to the instance of the
projectsController.arrangedObjects.value.hours
my custom value object has setter/getter, is KVC compliant for hours
(as far as I can tell).
Problem, is, the tableView does not display any data.
any clues ? I've googled and reviewed http://developer.apple.com/samplecode/DictionaryController/index.html
without success.
PS: In a similar applications, I succeeded to display an array of
values, but this time, I really need to stick with a mutable dictionary.
Louis Demers eng.
www.obzerv.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden