• 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
To-Many editor using NSArrayControllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To-Many editor using NSArrayControllers


  • Subject: To-Many editor using NSArrayControllers
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 14 Feb 2004 14:15:24 -0800

Another example I just added to <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

Managing a to-many relationship

Sometimes you need to present the user with a list of objects from which to make a selection. One user interface convention is to provide two table views, one showing the set of objects in the selection, the other showing the remainder of the available objects. There are then "<<" and ">>" buttons to move objects from one table view to the other. (I'm sure there's a technical name for this -- if anyone knows, please tell me!)

This example <http://homepage.mac.com/mmalc/CocoaExamples/ToMany.zip> uses a custom array controller to manage the full set of objects, and filter the display to remove the set in the user's selection shown in a second table view. It also supports addition and removal of objects to/from the selection.

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: To-Many editor using NSArrayControllers
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by Date: Re: NSImage and flipping
  • Previous by thread: Stepper inside table view
  • Next by thread: Re: To-Many editor using NSArrayControllers
  • Index(es):
    • Date
    • Thread