Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!thorin!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac Subject: Re: Sorting resources and a question about the list manager Message-ID: <767@thorin.cs.unc.edu> Date: 20 Jan 88 16:55:45 GMT References: <6577@jade.BERKELEY.EDU> Sender: news@thorin.cs.unc.edu Reply-To: steele@unc.UUCP (Oliver Steele) Organization: University Of North Carolina, Chapel Hill Lines: 18 jmm@thoth8.berkeley.edu () writes: >How do you sort resources? I'm using the names of the individual resources >to fill a list, and I'd like to be able to sort the resources rather than >sort the list every time it gets created. (The resource type is my own, and >I'd like to reorganize the order that the individual resources appear in >any way that I see fit, so I don't want to just sort by resource name.) The cheap trick here is to use AddResMenu() to add them all to the end of (empty) menu that you never draw (make one with NewMenu() and then dispose it after you're done with it), and read the names of the menu items from its data. Write me if you need source. ------------------------------------------------------------------------------ Oliver Steele ...!{decvax,ihnp4}!mcnc!unc!steele steele@cs.unc.edu "I thought your class was at nine." "It is, but I have to buy the books so I can do the reading." "Oh yeah, I forget your modus operandi."