[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proper way of connecting to apps
From: |
Stefan Urbanek |
Subject: |
Re: Proper way of connecting to apps |
Date: |
Sun, 22 Jun 2003 12:10:02 +0200 |
On 2003-06-22 11:52:35 +0200 Richard Frith-Macdonald <address@hidden> wrote:
On Sunday, June 22, 2003, at 08:58 am, Richard Frith-Macdonald wrote:
3. [NSWorkspace -launchApplication:] does not work correctly. The method
returns immediately after executing application binary, i would expect it to
wait until successfull application launch, so i can connect to it immediately
and start communicating with it. Now I have to create a loop where I check
whether application is running.
That might be a bug as you suggest... how does OpenStep/MacOS-X do it? I
thought it counted 'launch' as meaning that that it had started the new task
rather than as meaning that the application had completed all its startup. It's
very simple to change this of course, but we need to be sure what the correct
behavior is.
Further investigation seems to be quite clear that the current implementation
is correct (ie the way MacOS-X does it).
Yes, if you consider that the way MacOSX does it is the correct way. Other
thing is that how would you expect it to behave.
Perhaps it might be worth making the GSContactApplication() function from
GSServicesManager.m public, since it
wraps the code for contacting an application already?
This is something I wanted and was asking for. I knew that there are some
methods in -gui for doing the sutff and I just wanted them to be public.
Thereis also a method -_connectApplication: in NSWorkspace.m, but it seems to
be different from GSConnectApplication.
GSConnectApplication is good method, but it requires some NSPort and a NSDate
to be passed. Would it be possible to create a simple wrapper fot that method
which takes just one argument? like public gnustep extension method in
NSWorkspace -listenerForApplication:(NSString *)name ?
Thanks,
Stefan
--
http://urbanek.host.sk
First they ignore you, then they laugh at you, then they fight you, then you
win.
- Mahatma Gandhi
- Proper way of connecting to apps, Stefan Urbanek, 2003/06/20
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/21
- Re: Proper way of connecting to apps, Stefan Urbanek, 2003/06/21
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/22
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/22
- Re: Proper way of connecting to apps,
Stefan Urbanek <=
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/22
- Re: Proper way of connecting to apps, Stefan Urbanek, 2003/06/22
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/22
- Re: Proper way of connecting to apps, Stefan Urbanek, 2003/06/22
- Re: Proper way of connecting to apps, Richard Frith-Macdonald, 2003/06/22
- Services (Was: Re: Proper way of connecting to apps), Stefan Urbanek, 2003/06/22
- Re: Services (Was: Re: Proper way of connecting to apps), Richard Frith-Macdonald, 2003/06/22
- Re: Services (Was: Re: Proper way of connecting to apps), Richard Frith-Macdonald, 2003/06/22
- Re: Proper way of connecting to apps, Alexander Malmberg, 2003/06/22