• 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
Problems with multiple selection and NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problems with multiple selection and NSArrayController
      • From: Volker in Lists <email@hidden>
  • Prev by Date: Re: The thread that starts by NSTask didn't clear up
  • Next by Date: Re: The thread that starts by NSTask didn't clear up
  • Previous by thread: Re: Return Control To Next Active App Without Hiding?
  • Next by thread: Re: Problems with multiple selection and NSArrayController
  • Index(es):
    • Date
    • Thread