• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Non-deprecated way to determine Process Type (LSUIElement etc.) ? (From: Jerry Krinock <email@hidden>)
 >Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ? (From: Ken Heglund <email@hidden>)
 >Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: FSIsAliasFile deprecated - typeOfFile is slow
  • Next by Date: swift - making array of subclass of class also conforming to protocol
  • Previous by thread: Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?
  • Next by thread: Caching CIContext?
  • Index(es):
    • Date
    • Thread