• 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: insert a plist in a NSTableView using a NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insert a plist in a NSTableView using a NSDictionary


  • Subject: Re: insert a plist in a NSTableView using a NSDictionary
  • From: NSTask <email@hidden>
  • Date: Sun, 23 Sep 2007 21:25:07 +0200

>
>
> I am trying to insert a plist on to a NSTableView. So
> I have two columns in tableView, one for Key and the
> other for Value.
>
> plistDictionary_ = [NSDictionary
> dictionaryWithContentsOfFile:kPlistPath];
>
> How will I load this NSDictionary onto the
> NSTableView?
>
> What should be the return value in
>
> - (id)tableView:(NSTableView *)tableView
>         objectValueForTableColumn:(NSTableColumn
> *)tableColumn
>             row:(int)row {



You don't need this, just bind the table column with nsarraycontroller and
your dictionary
to nsarray controller as an object.
_______________________________________________

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

  • Follow-Ups:
    • Re: insert a plist in a NSTableView using a NSDictionary
      • From: mmalc crawford <email@hidden>
    • Re: insert a plist in a NSTableView using a NSDictionary
      • From: Shawn Erickson <email@hidden>
    • Re: insert a plist in a NSTableView using a NSDictionary
      • From: deepak gopal <email@hidden>
References: 
 >insert a plist in a NSTableView using a NSDictionary (From: deepak gopal <email@hidden>)

  • Prev by Date: insert a plist in a NSTableView using a NSDictionary
  • Next by Date: -[NSInvocation length]: selector not recognized [self = 0x30abd0]
  • Previous by thread: insert a plist in a NSTableView using a NSDictionary
  • Next by thread: Re: insert a plist in a NSTableView using a NSDictionary
  • Index(es):
    • Date
    • Thread