Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?
Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?
- Subject: Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?
- From: Jerry Krinock <email@hidden>
- Date: Fri, 27 Nov 2015 17:09:44 -0800
> On 2015 Nov 26, at 23:33, Ken Thomases <email@hidden> wrote:
>
> Don't use NSRunningApplication when NSApplication will do.
Oh, thank you Ken – that’s even better. NSApplication has the same ‘activationPolicy’ property.
> The replacement for TransformProcessType() is -[NSApplication setActivationPolicy:] and has been since 10.6.
right under my nose, with a strange name
> The method documentation still claims you can't go from regular back to accessory, but the release notes say you can.
Yes, it works. Supposedly since 10.7. Also, in 10.10+, it appears that the number of edge cases wherein you don’t get ownership of the menu bar after activating the first time has been further reduced, so that now this bug only shows when running in Xcode.
_______________________________________________
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