• 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: Any nice way to quit a background/helper app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any nice way to quit a background/helper app?


  • Subject: Re: Any nice way to quit a background/helper app?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 10 Jan 2009 12:34:13 -0800


On 2009 Jan, 10, at 9:07, Sean McBride wrote:

You can usually get a psn event for 'background apps'. See GetProcessForPID().

Thank you, Sean. The documentation for struct ProcessSerialNumber implied to me that background apps do not have a process serial number, and -[NSWorkspace launchedApplications] does not return them either. But using GetProcessForPID() as you suggested, I find that background apps do have a process serial number.


I submitted Document Feedback on struct process serial number.

Thanks,

Jerry
_______________________________________________

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: 
 >Any nice way to quit a background/helper app? (From: Jerry Krinock <email@hidden>)
 >Re: Any nice way to quit a background/helper app? (From: "Stephen J. Butler" <email@hidden>)
 >Re: Any nice way to quit a background/helper app? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: A Data Object in Cocoa
  • Next by Date: What is the best way to copy files
  • Previous by thread: Re: Any nice way to quit a background/helper app?
  • Next by thread: Re: Any nice way to quit a background/helper app?
  • Index(es):
    • Date
    • Thread