Re: Problems with multiple selection and NSArrayController
Re: Problems with multiple selection and NSArrayController
- Subject: Re: Problems with multiple selection and NSArrayController
- From: Volker in Lists <email@hidden>
- Date: Wed, 10 Dec 2008 11:42:59 +0100
Hi,
does the detail arraycontroller show all categories and selects the
ones contained in the set of your selected master rows? 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.
Volker
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