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: Loading saved file into NSArrayController



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:
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: 
 >Loading saved file into NSArrayController (From: Davide Scheriani <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.