• 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
Re: How to load data from NSDictionary to NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to load data from NSDictionary to NSTableView?


  • Subject: Re: How to load data from NSDictionary to NSTableView?
  • From: "Mark Munz" <email@hidden>
  • Date: Thu, 12 Oct 2006 09:46:45 -0700

You can use the [dictionary allKeys]; method which returns an NSArray of keys.

Then for the first column, return the value of the NSArray at rowIndex.
For the second column, get the value of NSArray at rowIndex and use it
as the key in [dictionary objectForKey:...];

On 10/12/06, Raul <email@hidden> wrote:
Hi to all ,

I have a NSDictionary with the keys of the columns i want to show into
a NSTableView.

I take a look at Apple Documentation , but i don't find how to load
data from NSDictionary to NSTableView.

Anyone can give a sample code?

Thanks.

-- Mark Munz unmarked software http://www.unmarked.com/ _______________________________________________ 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
  • Follow-Ups:
    • How to Store data of NSTextView into NSDictionary
      • From: manoj agrawal <email@hidden>
    • Re: Re: How to load data from NSDictionary to NSTableView?
      • From: Raul <email@hidden>
References: 
 >How to load data from NSDictionary to NSTableView? (From: Raul <email@hidden>)

  • Prev by Date: Re: NSTableView with NSArray and C-array question
  • Next by Date: Re: setValue:forUndefinedKey:
  • Previous by thread: How to load data from NSDictionary to NSTableView?
  • Next by thread: Re: Re: How to load data from NSDictionary to NSTableView?
  • Index(es):
    • Date
    • Thread