Re: NSArrayController remove:
Re: NSArrayController remove:
- Subject: Re: NSArrayController remove:
- From: "I. Savant" <email@hidden>
- Date: Tue, 12 Sep 2006 09:48:28 -0400
On the surface, the code you provided looks okay, but without a
complete code listing of anything that talks to your array
controller, I don't think anybody here is going to be able to offer
much help. There's simply not enough information here for a
definitive answer.
--
I.S.
On Sep 12, 2006, at 9:40 AM, Tore Halset wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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