home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5313 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.5 KB  |  46 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!stanford.edu!morrow.stanford.edu!news
  3. From: hinds@cmgm.Stanford (Alexander Scott Hinds)
  4. Subject: Problems implementing services
  5. Message-ID: <1992Jul29.042157.18366@morrow.stanford.edu>
  6. Keywords: how?
  7. Sender: news@morrow.stanford.edu (News Service)
  8. Organization: Stanford University, California, USA
  9. Date: Wed, 29 Jul 1992 04:21:57 GMT
  10. Lines: 34
  11.  
  12. I have a program in which I'd like to implement services.  That is, I'd  
  13. like it available as a service to other programs.  As per the Appkit  
  14. documentation in the release notes (2.0) I created a file that looks like  
  15. this: (called services.txt)
  16.  
  17. --
  18. Message: servicesMessage
  19. Port: DATer 
  20. Menu Item: Create DAT Contents
  21. Send Type: NeXT filename pasteboard type
  22. --
  23. (above taken more or less from CopyPath.services)
  24.  
  25. and added the following line to my Makefile.preamble:
  26. --
  27. LDFLAGS = -sectcreate __ICON __services services.txt
  28. --
  29.  
  30. This brings me to two questions:
  31.  
  32.     1.  Where is a list of the valid send types?  I don't really have
  33.     write a program that asks the pasteboard for those strings, do I?
  34.  
  35.     2.  Why doesn't my program show up in the Services menu?  I tried
  36.     rebooting with the program in LocalApps, and it doesn't show up in
  37.     the workspace like the services for CopyPath do.
  38.  
  39. Note that I haven't implemented my Listner and servicesMessage method in  
  40. my delegate yet.  I assume that his shouldn't prevent the service from at  
  41. least showing up, right?  
  42.  
  43. I'd greatly appreciate ANY help.  Thanks in advance.
  44.  
  45. --X
  46.