• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading saved file into NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Loading saved file into NSArrayController
      • From: Davide Scheriani <email@hidden>
References: 
 >Loading saved file into NSArrayController (From: Davide Scheriani <email@hidden>)

  • Prev by Date: Loading saved file into NSArrayController
  • Next by Date: Distributed Objects client/peer identification
  • Previous by thread: Loading saved file into NSArrayController
  • Next by thread: Re: Loading saved file into NSArrayController
  • Index(es):
    • Date
    • Thread