Re: Quick question about NSWorkspaceDidLaunchApplicationNotification
Re: Quick question about NSWorkspaceDidLaunchApplicationNotification
- Subject: Re: Quick question about NSWorkspaceDidLaunchApplicationNotification
- From: Matt Gemmell <email@hidden>
- Date: Sun, 26 May 2002 19:43:10 +0100
On Sunday, May 26, 2002 6:21:25 pm Matt Gemmell wrote:
>
A question about NSWorkspaceDidLaunchApplicationNotification (and
>
indeed about NSWorkspaceDidTerminateApplicationNotification).
>
>
If I register with sharedWorkspace to receive this notification, do I
>
receive it for *all* apps that are launched, regardless of who
>
launched them, or do I only receive the notification for apps I've
>
launched myself using sharedWorkspace?
I see now that it's indeed for all GUI apps launched/quit, which is
good. There's some weirdness with the NSApplicationName key in the
userInfo dictionary, though (which is of only marginal use anyway; why
can't we have the path, or an FSSpec or such?).
If the app has a version number in its name which includes a period,
(like "BBEdit 6.5"), I only get back "BBEdit 6" as the name. This seems
to happen in other places too. When I set Mailsmith (app name "Mailsmith
1.5") to be my default email app in Sys Prefs -> Internet, it shows up
in the popup menu as "Mailsmith 1". Odd.
Anyway, I have my notifications working. Thanks all. :)
Best,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.