Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple table column bindings



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >simple table column bindings (From: Gareth Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.