Re: Loading saved file into NSArrayController
Re: Loading saved file into NSArrayController
- Subject: Re: Loading saved file into NSArrayController
- From: Mike Abdullah <email@hidden>
- Date: Mon, 11 Feb 2008 13:59:43 +0000
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.
Mike.
On 11 Feb 2008, at 13:28, Davide Scheriani wrote:
hello guys!
What's the selector to add again into an NSArrayCOntroller the
objects saved?
im doing this
- (void)windowControllerDidLoadNib:(NSWindowController *)aController {
[super windowControllerDidLoadNib:aController];
[ac addObjects:myArray];
}
but when I see the NSTableView all the row are selected.
Is it right doing in this way or that's anther one?
thank you...
bye
_______________________________________________
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