Re: Why isn't my app showing up in launched applications
Re: Why isn't my app showing up in launched applications
- Subject: Re: Why isn't my app showing up in launched applications
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 24 Jun 2005 15:13:02 +0100
On 6/24/05, matt jaffa <email@hidden> wrote:
> Hi,
>
> I launch my application as follows [[NSWorkspace sharedWorkspace]
> launchApplication:@"Pathtoapp"]
>
> This launches it, then I call: [[NSWorkspace sharedWorkspace]
> launchedApplications], and it returns an array of launched
> applications and my launched app doesn't show up in that array. And my
> Application is a GUI app with the ending .app
Are you calling launchedApplications immediately after
launchApplication? If so, try waiting. Apps are launched
asynchronously and it can take a second or two for them to check in
with the windowserver. I think there should be a notification you can
subscribe to so you can be notified when they do.
-- Finlay
_______________________________________________
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