Re: NSWorkspace ... launchApplication
Re: NSWorkspace ... launchApplication
- Subject: Re: NSWorkspace ... launchApplication
- From: Thierry Passeron <email@hidden>
- Date: Sun, 22 Jan 2006 22:11:38 +0100
Well in this case I think that Terminal.app doesn't handle re-open
events correctly :/
Is it the case on your mac ?
T
Le 22 janv. 06 à 22:07, j o a r a écrit :
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:]
_______________________________________________
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