To-Many editor using NSArrayControllers
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.