NSMutableArray vs NSArrayController
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