Re: Parsing iTunes XML to NSTableView
Re: Parsing iTunes XML to NSTableView
- Subject: Re: Parsing iTunes XML to NSTableView
- From: Nicko van Someren <email@hidden>
- Date: Sun, 15 Jan 2006 22:45:27 +0000
On 15 Jan 2006, at 20:30, Jeff Dlouhy wrote:
I am a teenager new to Cocoa and I am trying to parse the iTunes
Library XML and trying to put the library into a NSTableView. I
can't seem to get it to work here is some of the code I am using.
...
Everything is initalized above the loop, just couldn't fit it in
the e-mail, the thing im really having problems is with getting
that information into a table with columns. I don't understand
NSDictionarty all that well.
The best solution for this sort of task is to use an
NSArrayController object and the data binding functionality in
Interface Builder to bind your array to a table. If you dig around
in the documentation and on-line for NSArrayControler, NSTableView
and Binding you'll find the information you need, e.g. try:
http://www.google.com/search?q=nstableview+nsarraycontroller+binding
Google is your friend, although of course it helps to know what terms
to search for so we'll let you off this time!
Nicko
_______________________________________________
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