Problems with multiple selection and NSArrayController
Problems with multiple selection and NSArrayController
- Subject: Problems with multiple selection and NSArrayController
- From: David Niemeijer <email@hidden>
- Date: Wed, 10 Dec 2008 11:20:00 +0100
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