Re: NSArrayController remove:
Re: NSArrayController remove:
- Subject: Re: NSArrayController remove:
- From: Tore Halset <email@hidden>
- Date: Tue, 12 Sep 2006 15:40:06 +0200
On Sep 12, 2006, at 15:33, I. Savant wrote:
This seems very wrong. :-) Without seeing your project, I'm at a
loss. If your column(s) is/are bound correctly, the remove: method
should remove whatever's selected. You get this functionality for
free.
Ok. Thanks anyway.
Are you sure you're not manipulating the content or selection of
the array controller (or even the table view) in code anywhere?
I manipulate the content of the master array controller with the
following code:
NSArray *rows = ...
[queryResultController removeObjects:[queryResultController
arrangedObjects]];
[queryResultController addObjects:rows];
The first line is to remove all current objects and the second is to
set the new content. Perhaps this is not the correct way to fill up a
array controller with objects?
- Tore.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden