home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14926 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.7 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!igor.rutgers.edu!math.rutgers.edu!landwebe
  2. From: landwebe@math.rutgers.edu (Peter Landweber)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Problem writing INIT/cdev
  5. Summary: trying to get the Finder to open a
  6.      Control Panel that is already open
  7. Message-ID: <Sep.3.01.53.43.1992.13837@math.rutgers.edu>
  8. Date: 3 Sep 92 05:53:43 GMT
  9. References: <1992Aug27.002347.14632@vax5.cit.cornell.edu>
  10. Distribution: comp
  11. Organization: Rutgers Univ., New Brunswick, N.J.
  12. Lines: 27
  13.  
  14.  
  15.  
  16.      I am working on an INIT/cdev combination to be used under System
  17. 7, and I've run into a problem.
  18.      At startup time, the INIT moves its resource map after the system
  19. resource map in the linked list, and it patches CloseResFile() to
  20. ignore the file.  The result is that my file stays open, and its
  21. resources are always available.  This is similar to what Suitcase II
  22. does with font suitcases.  So far everything has gone extremely well 
  23. using this technique.
  24.      Now, I'm trying to add a "cdev".  The problem is that when the
  25. finder opens up my file as a Control Panel, it expects my file's
  26. resource map to be the first in the linked list.  Since the resource
  27. map is actually at the end of the linked list, the finder crashes.
  28.  
  29. So, my questions are:
  30. 1)  Is there a way for the Finder to open up a Control Panel if the
  31. file is already open, and its resource map is not at the front of the
  32. linked list?
  33. 2)  Is there a way to open a file twice, with two separate resource
  34. maps?  That way, I could still have one resource map linked after the
  35. system resource map, and the other at the front of the linked list.
  36. One of the maps could be read-only if necessary.
  37.  
  38. Any suggestions, answers, or solutions would be greatly appreciated.
  39.  
  40. -- Greg Landweber  (landwebe@math.rutgers.edu)
  41.