home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!think.com!enterpoop.mit.edu!world!zobkiw
- From: zobkiw@world.std.com (Joe Zobkiw)
- Subject: Finding the newest resources (?)
- Message-ID: <C02nMB.7wA@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- Date: Wed, 30 Dec 1992 12:20:34 GMT
- Lines: 22
-
- I am keeping a very small set of resources in my applications datafile.
- I need to find out which resources are the newest without keeping an
- audit trail of all my AddResource calls. I assume I can read the Resource
- Map directly to figure this out, or can I? I forsee a routine something like:
-
- Handle MyGetRes(short id, ResType type, long* rank);
-
- Where rank returns a value, 1 being the latest resource added to the file,
- n being the "oldest" resource in the file.
-
- My questions are, is this a valid solution? What happens if I delete a
- resource in the middle somewhere, does the next added resource take its
- old position and thus screw up my theory? Any better ideas?
-
- Thanks in advance.
-
-
- --
- -------------------------------------------------------------
- joe zobkiw zobkiw@world.std.com aol: aflzobkiw
-
- macintosh.midi.synthesis.c.oop.asm.communications.graphics...
-