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

Re: Re: How to load data from NSDictionary to NSTableView?


  • Subject: Re: Re: How to load data from NSDictionary to NSTableView?
  • From: Raul <email@hidden>
  • Date: Thu, 12 Oct 2006 23:10:52 +0200

Thanks for your reply , but i don't know how to load to the first
column or second column of the NSTableView.

What methods i have to use?



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:...];

> 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


References: 
 >How to load data from NSDictionary to NSTableView? (From: Raul <email@hidden>)
 >Re: How to load data from NSDictionary to NSTableView? (From: "Mark Munz" <email@hidden>)

  • Prev by Date: Re: Sheets questions
  • Next by Date: Re: Printing
  • Previous by thread: Re: How to load data from NSDictionary to NSTableView?
  • Next by thread: How to Store data of NSTextView into NSDictionary
  • Index(es):
    • Date
    • Thread