home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!stanford.edu!morrow.stanford.edu!news
- From: hinds@cmgm.Stanford (Alexander Scott Hinds)
- Subject: Problems implementing services
- Message-ID: <1992Jul29.042157.18366@morrow.stanford.edu>
- Keywords: how?
- Sender: news@morrow.stanford.edu (News Service)
- Organization: Stanford University, California, USA
- Date: Wed, 29 Jul 1992 04:21:57 GMT
- Lines: 34
-
- I have a program in which I'd like to implement services. That is, I'd
- like it available as a service to other programs. As per the Appkit
- documentation in the release notes (2.0) I created a file that looks like
- this: (called services.txt)
-
- --
- Message: servicesMessage
- Port: DATer
- Menu Item: Create DAT Contents
- Send Type: NeXT filename pasteboard type
- --
- (above taken more or less from CopyPath.services)
-
- and added the following line to my Makefile.preamble:
- --
- LDFLAGS = -sectcreate __ICON __services services.txt
- --
-
- This brings me to two questions:
-
- 1. Where is a list of the valid send types? I don't really have
- write a program that asks the pasteboard for those strings, do I?
-
- 2. Why doesn't my program show up in the Services menu? I tried
- rebooting with the program in LocalApps, and it doesn't show up in
- the workspace like the services for CopyPath do.
-
- Note that I haven't implemented my Listner and servicesMessage method in
- my delegate yet. I assume that his shouldn't prevent the service from at
- least showing up, right?
-
- I'd greatly appreciate ANY help. Thanks in advance.
-
- --X
-