🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #23793

Re: Sorting resources and a question about the list manager

#23793
From: Oliver Steele
Date: Wed, 20 Jan 1988 16:55
18 lines
1455 bytes
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."
Technical Details
Message-ID: <767@thorin.cs.unc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!thorin!unc!steele
References: <6577@jade.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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