• 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: Replacement of deprecated API GetProcessInformation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacement of deprecated API GetProcessInformation


  • Subject: Re: Replacement of deprecated API GetProcessInformation
  • From: Steve Mills <email@hidden>
  • Date: Tue, 28 Feb 2017 19:35:09 +0000 (GMT)

On Feb 28, 2017, at 01:08 PM, sumit bansal <email@hidden> wrote:

Hello All,

I need to get process information (specifically: processSignature and
processType).

As API GetProcessInformation has been deprecated. So I was trying to get
the information from NSRunningApplication, but not able to find the exact
property/method for upper mentioned info.

The process signature is an old way of identifying applications and processes. The modern equivalent would be the bundle identifier. From an NSRunningApplication you can get its bundleIdentifier. If you need more info, you can probably get the NSBundle for it and gets its infoDictionary. The process type is the CFBundlePackageType entry in the dict. Note that the CFBundleSignature is also in there, but not all apps will have a decent value in there.

Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
_______________________________________________

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


  • Follow-Ups:
    • Re: Replacement of deprecated API GetProcessInformation
      • From: Daryle Walker <email@hidden>
References: 
 >Replacement of deprecated API GetProcessInformation (From: sumit bansal <email@hidden>)

  • Prev by Date: Re: Need replacement of Component Manager::OpenDefaultComponent
  • Next by Date: Re: macOS 10.13 suggestion for init() throws
  • Previous by thread: Replacement of deprecated API GetProcessInformation
  • Next by thread: Re: Replacement of deprecated API GetProcessInformation
  • Index(es):
    • Date
    • Thread