• 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
is NSDictionaryController the solution to my problem ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Radio Buttons not Selecting Properly
  • Next by Date: Re: Select tablecell on creation through arrayController
  • Previous by thread: Re: Radio Buttons not Selecting Properly
  • Next by thread: Re: Observing Managed Object Changes
  • Index(es):
    • Date
    • Thread