ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Aug/Speaking-to-Workspace

This is Speaking-to-Workspace in view mode; [Up]


Date: Sun 17-Aug-1989 19:26:29 From: Unknown Subject: Speaking to Workspace this works to open a WriteNow file in an obvious place. If Workspace knows of a tool which will deal with the given file's extension. It will do the right thing for that file too (i.e. start the app if not started and send the app a openFile:ok: message). Enjoy -------------------------------- cut here -------------------------------- #include <appkit/appkit.h> main() { id SpeakerId; port_t port; int ec; int returnOk; SpeakerId = [Speaker new]; port = NXPortFromName(getenv("Workspace"),NULL); // get port for "someapp" if (port != PORT_NULL) { [SpeakerId setSendPort:port]; ec = [SpeakerId openFile:"/me/foo.wn" ok:&returnOk]; // any method } [SpeakerId free]; // when we quit }

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.