Le 22 oct. 06 à 17:56, Yen-Ju Chen a écrit :
On 10/21/06, Quentin Mathé <[EMAIL PROTECTED]> wrote:
> Currently, AZDock can tell GNUstep application to hide and
terminate.
Well, there is such code in GSServicesManager of GNUstep (it can
surely replace WorkspaceCommKit by the way). For each app, you can
send messages to NSApplication instance by talking to
GSServicesManager proxy with DO. Your message must use a special
selector prefixed with 'application:' iirc.
That's what I did so far.
ok
Knwowing when applications start and finish starting could achieved
with NSWorkspace help since it provides all the necessary
notifications. However right now I think most of them are not
supported.
Maybe etoile_system can implement some of the
application-related functions of NSWorkspace
That's on the way. I will ask you later how to add support for other
X11 applications.
while a file manager implements the file-related functions ?
True, but I think this will be delegated to CoreObject ultimately.
By the way, how can I receive such notifications across processes
since most of them are not posted to distributed notification
center ?
They should. They get posted to -[NSWorkspace notificationCenter]
which reposts them to the distributed notification center. At least,
that's the result of my investigation for a notification like 'hide'.
More here:
<http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/
NSApplication.m>
<http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWorkspace.m>
Cheers,
Quentin.
--
Quentin Mathé
[EMAIL PROTECTED]
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev