Re: Problems with multiple selection and NSArrayController
Re: Problems with multiple selection and NSArrayController
- Subject: Re: Problems with multiple selection and NSArrayController
- From: David Niemeijer <email@hidden>
- Date: Wed, 10 Dec 2008 12:09:11 +0100
Volker,
On Dec 10, 2008, at 11:42 AM, Volker in Lists wrote:
does the detail arraycontroller show all categories and selects the
ones contained in the set of your selected master rows?
yes.
Can't you just display only the detail categories that are within
the set of the selected master? This would be easy to do even with
multiple master objects selected via the "Content Array For Multiple
Selection" binding of the categories controller. And it would
reflect the expected Cocoa behaviour.
The problem with doing that is that it would make it more complicated
for the user to add new categories, as in that case the detail table
would only show the already selected categories and thus offer no way
to select additional categories. Currently adding more categories to
an item is just a matter of selecting multiple ones. What you are
suggesting implies adding a different user interface for adding
categories to an item. Maybe that is the only solution or even best
solution?
david.
Am 10.12.2008 um 11:20 schrieb David Niemeijer:
Hi,
I have a master table that displays that gets it's contents
NSArrayController with items. Each of those items has a categories
key which contain an NSMutableIndexSet. When the user selects a row
in the master table my app displays in a detailed view a detail
table with categories. The contents of that detail table comes from
a categories NSArrayController and the selection is determined by
the index set of the categories key of the selected item of the
master table. If the user changes the selection in that detail
table the indexes nicely update for the selected item of the master
table. Up to this point everything works fine so far.
Now I add multiple selection to the master table. When two selected
items in the master table have index sets that contain the same
indexes everything is still ok, but when the each have different
indexes a problem will occur. No categories will get selected in
the detail table and when I click elsewhere in the master table the
category indexes of the two originally selected items will become
empty sets.
So, what would I need to do to prevent problems with multiple
selection in the master table?
Thanks,
david.
_______________________________________________
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
_______________________________________________
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