• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with multiple selection and NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problems with multiple selection and NSArrayController (From: David Niemeijer <email@hidden>)
 >Re: Problems with multiple selection and NSArrayController (From: Volker in Lists <email@hidden>)

  • Prev by Date: Problem drawing outside of drawRect: in a custom table cell
  • Next by Date: Wake up Reason
  • Previous by thread: Re: Problems with multiple selection and NSArrayController
  • Next by thread: Wake up Reason
  • Index(es):
    • Date
    • Thread