Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification
Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification
- Subject: Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification
- From: Jerry Krinock <email@hidden>
- Date: Wed, 31 Jul 2013 16:31:32 -0700
On 2013 Jul 31, at 12:46, Stephane Sudre <email@hidden> wrote:
> I will file one because I consider that even if LSUIElement is set, it's still an application (otherwise there would no point in returning an running application instance when launched using NSWorkspace APIs)
Although you are correct (a "running application" is indeed an "application"), your bug should ask that the NSWorkspaceDidTerminateApplicationNotification *documentation* be clarified, because, as Peter Ammon confirmed, it's way too late for Apple to change the behavior.
On 2013 Jul 31, at 12:47, Peter Ammon <email@hidden> wrote:
> The more modern -[NSWorkspace runningApplications] method gives you a list of all applications, including background and UIElement. You can use KVO to observe this property, and be notified when apps are launched or terminated.
I'll try that. Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden