home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20428 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.2 KB  |  32 lines

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