Re: Loading saved file into NSArrayController
Re: Loading saved file into NSArrayController
- Subject: Re: Loading saved file into NSArrayController
- From: Davide Scheriani <email@hidden>
- Date: Mon, 11 Feb 2008 16:51:13 +0100
well,
the NSArrayController is bound to an array in MyDocument class file.
When I get back my datas from the file I reafill the array and the
NSArrayC should update
the datas.But I dont see doing this.
Ill have a look into the documentation of MVC anw...
I strongly suggest you go back and study some of the documentation
on MVC. Your NSArrayController should be bound to an array in your
model. When loading in the saved objects, they should be placed into
the model. The NSArrayController will recognise this and display the
objects in the table view. You shouldn't be manually adding the
objects to the array controller yourself.
_______________________________________________
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