• 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
NSMutableArray vs NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray vs NSArrayController


  • Subject: NSMutableArray vs NSArrayController
  • From: "Mike Chambers" <email@hidden>
  • Date: Fri, 28 Nov 2008 15:36:06 -0800

I have a simple app that uses an NSArrayController to bind data to an
NSTableView. The NSArrayController is bound to a NSMutableArray. When
the app loads I load data from a file, and add it to the
NSMutableArray. However, the data does not appear in the NSTableView
until I click one of the headers to sort the data.

If I just add one item to the NSMutableArray, it works fine. But when
I add 995, it doesnt work. I am adding the data through the
appropriate KVC methods.

So, my questions are:

1. Is there any reason I shouldnt just get rid of the NSMutableArray
and add / remove data from the NSArrayController directly?

2. Anyone know why my table view is not updating when adding a large
number of items?

mike
_______________________________________________

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: NSMutableArray vs NSArrayController
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Core Data modeling question
  • Next by Date: Re: Text blurred in application
  • Previous by thread: Re: Problem with binding of @count
  • Next by thread: Re: NSMutableArray vs NSArrayController
  • Index(es):
    • Date
    • Thread