[comp.sys.mac.programmer] Showing a list of all the avail

leonardr@uxe.cso.uiuc.edu (02/27/88)

/* acf8:comp.sys.mac.programmer / icm@eleazar.Dartmouth.EDU (Ioannis C. Mangos) /  9:28 pm  Feb 21, 1988 */

>        I am writting a small application for the Mac with some friends of mine
>and we want to have a menu called "Windows" that will display all the windows
>that there are currently on the screen.  One problem I have is that there does
>not seem to be a command "DeleteMItem" whereas there is one called "AppendMItem"
>The way I was thinking to do that was to have a linked list of all the window
>titles and append them.  But in order to do that I have to delete first all the
>existing titles n that menu.
>        Does anyone has an alternative on that that is willing to share with
>me?  Thank you for your help in advance.
	You should purchase a copy of Scott Knaster new book, Macintosh
Programming Secrets.  In it (along with a host of other useful things) you will
find section (and example source) that deals with window handling including
a Windows Menu for both selection windows as well as Stacking and Tiling them.

+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +                                   +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+