🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #381

Filenames not presented to Services

#381
From: Dave Griffiths
Date: Sat, 01 Aug 1992 01:48
25 lines
1645 bytes
I had an idea for a Service utility that would take as input a filename. The
filename would usually be associated with the key window. For instance, if
you are in Edit, the name of the file you are editing is presented to any
Service that wants to use it.

Unfortunately, I have just discovered that Edit is one of the few apps that
*do* present the filename to a Service. Improv, WriteNow, WordPerfect etc
do not. This seems a bit of a shortcoming (and has scuppered the plans for
my utility!). The problem is that the app must explicitly do things to 
provide the filename as a Service send type.

How can the default behaviour be improved? One way would be for NeXT to add
the functionality to present the filename as a Send type by default. This
could be done in the setTitleAsFilename: method of Window.

While we're on the subject, I was also planning to be able to drop the
filename icons into my utility as an alternative to using a service. It
would be neat if the icon for the file currently being edited in an arbitrary
application was readily available, say in the window title bar. (I was also
going to write a Service utility to display the icon for the current
filename, but if only Edit and Draw can use it there doesn't seem much point!).

Is the situation any better in 3.0?

Dave Griffiths
Technical Details
Message-ID: <1992Aug1.014823.864@prim>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!prim!dave

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!prim!dave
From: prim!dave@germany.eu.net (Dave Griffiths)
Newsgroups: comp.sys.next.programmer
Subject: Filenames not presented to Services
Message-ID: <1992Aug1.014823.864@prim>
Date: 1 Aug 92 01:48:23 GMT
Organization: Primitive Software Ltd.
Lines: 25