Re: Plist -> array -> tableview
Re: Plist -> array -> tableview
- Subject: Re: Plist -> array -> tableview
- From: "I. Savant" <email@hidden>
- Date: Thu, 20 Nov 2008 11:10:30 -0500
On Thu, Nov 20, 2008 at 10:59 AM, Richard S. French
<email@hidden> wrote:
> How does one get plist data into an array to be displayed in a tableview?
http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/ReadWritePlistData/chapter_7_section_2.html
http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/TableView.html
One splits the problem into its two separate issues then reads the
documentation on both. :-)
NSArray (and NSDictionary) can be created with the contents of a
plist (make sure it's the proper one - a dictionary plist can't create
an array and vice-versa). NSTableDataSource can be used to feed the
data to a table, or Cocoa Bindings can be used.
--
I.S.
_______________________________________________
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