home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7878 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!news.dell.com!uudell!pensoft!usenet
  2. From: alex@laos (Alex D. Nghiem)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: setting a custom icon for custom documents
  5. Message-ID: <1992Dec21.215705.814@pencom.com>
  6. Date: 21 Dec 92 21:57:05 GMT
  7. Sender: usenet@pencom.com (Usenet Pseudo User)
  8. Reply-To: alex@pencom.com
  9. Organization: Pencom Software
  10. Lines: 59
  11.  
  12. Hello there:
  13.  
  14. I finally figured out what the problem was when I tried to set a custom  
  15. document icon for my application.  To recap: I created an application and a  
  16. custom icon for its documents.  I then installed my application in ~/Apps.   
  17. However, if I place my application on the dock, then the Worksspace would  
  18. recognize my application as the one which created these documents. If I removed  
  19. my application from the dock, then the Workspace would use Edit instead.  Many  
  20. people responded that I should update the File Viewer after creating the  
  21. document -- this may not, but that wasn't the problem here.
  22.  
  23. This happened because of the LaunchPaths and an AppilcationPaths defaults  
  24. (owned by Workspace) did not include my home directory (which is where I  
  25. installed my application).  By removing these two defaults from my defaults  
  26. database, the Workspace looked for my application in the default directory,  
  27. which is ~/Apps.
  28.  
  29.  
  30. Best regards,
  31.  
  32.  
  33. Alex Duong Nghiem          Phone: (512) 343-1111
  34. Pencom Software            Fax:   (512) 343-9650   
  35. 9050 Capital of TX Hwy N.  Mail:  alex@pencom.com
  36. Suite 300                  Mail:  co-Xist_support@pencom.com
  37. Austin, TX 78759           Mail:  co-Xist_info@pencom.com
  38. USA
  39.                            ****************************
  40.                            * NeXTMail gladly accepted *
  41.                            ****************************
  42.  
  43.  
  44. Begin forwarded message:
  45.  
  46. Date: Wed, 16 Dec 92 16:35:04 -0800
  47. To: alex@pencom.com
  48. From: isbell@cats.ucsc.edu (Art Isbell)
  49. Subject: Re: setting custom icons for custom documents
  50.  
  51. Alex,
  52.    Well, you seem to have done everything I do.
  53.    Just to clarify, when you say you dragged the document icon into IB, you do
  54. mean that you dragged it into the "Document Icons and Extensions" ScrollView
  55. and you did type the proper file extension (with no period) below the icon,
  56. right?
  57.    My Workspace has no ApplicationPaths defaults variable and Eric Scott's gdb
  58. script that extracts defaults variables from NeXTSTEP apps doesn't report that
  59. Workspace responds to such a variable, so I don't know what that means.  Have
  60. you tried removing ApplicationPaths altogether?
  61.    On an unrelated topic, I just spent about an hour trying to figure out why
  62. Terminal didn't appear to be opening a new shell Window when I was logged in as
  63. myself (worked fine as root).  I had previously experienced an involuntary
  64. logout due to a Workspace error (probably due to a NetInfo problem), and the
  65. Terminal's WinX value became -476!  Had I selected Terminal's Windows menu, I
  66. would have probably realized what had happened.  I have had similar off-screen
  67. coordinates written to the defaults database when apps close due to some sort
  68. of error, so file that one away for the future when you "lose" a Window.
  69.  
  70. Art
  71.