Re: NSArrayController remove:
Re: NSArrayController remove:
- Subject: Re: NSArrayController remove:
- From: "I. Savant" <email@hidden>
- Date: Tue, 12 Sep 2006 09:33:55 -0400
Tore:
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.
Are you sure you're not manipulating the content or selection of
the array controller (or even the table view) in code anywhere?
--
I.S.
On Sep 12, 2006, at 9:21 AM, Tore Halset wrote:
On Sep 12, 2006, at 14:51, I. Savant wrote:
How have you set up the bindings between your array controller
and your table view / columns?
The contentArray are bound to the "selection" of a master array
controller for another entity.
Also, if you're trying to mix Cocoa Bindings and the table data
source methods, realize that your data source methods will have to
use the array controller's -arrangedObjects to make sure your
table's rows match the order of the array controller's objects.
The NSTableView are bound to the arrangedObjects of the array
controller.
- Tore.
On Sep 12, 2006, at 8:24 AM, Tore Halset wrote:
I am using NSArrayController in a non-CoreData-application. I am
having trouble with remove: as it seem to delete the first row
even if the last row are selected.
Sorry for being so vague. Anyone seen and solved this problem
before? What to look out for?
_______________________________________________
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