Re: simple table column bindings
Re: simple table column bindings
- Subject: Re: simple table column bindings
- From: Milen Dzhumerov <email@hidden>
- Date: Sun, 30 Mar 2008 23:58:35 +0100
Hi Gareth,
There were a couple of problems.
1) You should be calling [movements addObject:m] instead of [movements
add:m]
2) You should set the class which the array controller manages in IB
to Movement (the Classname text field)
After doing this, it all works.
Regards,
Milen
On 30 Mar 2008, at 22:42, Gareth Davis wrote:
hi,
I'm having some trouble with completing a simple proof of concept
app. The requirement is to process a simple xml document and display
the results in a two column table.
I've managed to load the xml and parse what I need from it into a
bunch of "Movement" objects which I attempt to add to a
NSArrayController. My table actually displays three records but only
with the null placeholder. Some where along the lines the bindings
I've specified for the two table columns are broken.
If any of you have 5 minutes a copy of my project is available at:
http://web.mac.com/gareth.davis/Misc/cocoa-dev/SignsDesktop1.tar.gz
(You'll have to forgive the "Foo" class, it seemed like a good name
for the class a couple of days ago)
The app it's self is pretty simple, clicking the "load" button
should populate the table with the data using the example.xml
resource.
Any help would be gratefully received.
Thanks in advance
Gareth Davis
_______________________________________________
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
_______________________________________________
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