Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
Date: Sun, 6 Sep 1992 12:08:27 GMT
Lines: 34
I'm trying to pass commands to WriteNow. The ultimate goal is to build a file of addresses and infos with a Database, and then merge the info in a wn document.
I'd like to do it from my program, without requiring the user to actually
using WriteNow and giving the merge command.
As a first step, I try opening a file with WriteNow (easy, it works). Then
I try passing a simple method with performRemoteMethod. I tried something
like "quit", "hide", "selectAll". (I verified that those methods do exist by
using NibEditor on WriteNow). Well, nothing happens, although I get a return
code = 0, which should mean that everything was fine...
What do I do wrong?
Thanks
Marco Ronchetti
===== here is my code:
- doIt:sender
{
port_t thePort;
int result, flag;
id targetApp;
thePort = NXPortFromName("WriteNow",NULL);
targetApp = [NXApp appSpeaker];
[targetApp setSendPort:thePort];
result = [targetApp sendOpenFileMsg:"/users/ronchet/Speaker/wd.wn"