ftp.nice.ch/pub/next/developer/resources/classes/PopUpMenu.0.2.README

This is the README for PopUpMenu.0.2.s.tar.gz [Download] [Browse] [Up]

PopUpMenu


The PopUpMenu was written to fill a need for right mouse activated menus that
could:
1) remember what selection had occured before
2) could handle tree menus
3) was easy to create
4) didn't need alot of additions to the menu (ie the number of menu items was static).
5) modal
6) easy to pop up
7) didn't need a cover button

A view-context popup menu is a powerful tool so the user doesn't have to move the mouse to faraway positions or completely traverse a tree menu where you must move your mouse up and down to get to a selection the user selected a moment ago.  With this menu, a horizontal movement is sufficient to move all the way to the last selection if desired.

To create and use the menu see the code in TestView.m.  To change the background color or the type of text cell used, you are going to have to change the code for the moment until I get around to adding some more appearance methods.

Also, you must be sure you have enabled your right mouse button for action.  You can tell if you can use your right mouse button if when you mouse down in a App window, the main menu for that app appears (or while having selected an App, right mouse down on the root window).  If your right mouse down button doesn't exhibit this behavoir, use the App Preferences to activate your mouse or use dwrite.  Using  the App Preferences is the easiest way.


To include this class in a nib file, just Add under the inspector then select the PopUpMenu.h file.
Then include the header via the usual  #import directive at the top.



Comments and bugs to gbol@think.com

Gregory Lampshire

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.