Re: NSWorkspace ... launchApplication
Re: NSWorkspace ... launchApplication
- Subject: Re: NSWorkspace ... launchApplication
- From: j o a r <email@hidden>
- Date: Sun, 22 Jan 2006 22:07:08 +0100
On 22 jan 2006, at 21.29, Thierry Passeron wrote:
is ther a way when you launch an application to tell it to open a
new window if it's already running ?
For example with Terminal.app I would like to have it open if it's
not running but if it's running I would like to open a new terminal
window.
I can do that with a test and an applescript. But is it possible
directly in cocoa ?
It _should_ in my opinion do that automatically - at least if the
application is not already the active application, and provided that
the application wants to open a new window for a re-open event [1].
This is the default behaviour in Mac OS X, and is supported by most
applications.
If this doesn't work already when you re-activate an application
using NSWorkspace, I suggest that you file a bug report / enhancement
request.
j o a r
[1] See: -[NSApplication
applicationShouldHandleReopen:hasVisibleWindows:]
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden