• 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: Processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processes


  • Subject: Re: Processes
  • From: Finlay Dobbie <email@hidden>
  • Date: Mon, 21 Jan 2002 19:17:10 +0000

On Monday, January 21, 2002, at 02:25 PM, Alex Keresztes wrote:

1. Does anyone know how to check if a specific application is running, from cocoa or carbon?

See Processes.h in Carbon.

2. How can I send that application a quit message once I have discovered if it is running?

A little more difficult. There is an API for this in CoreProcesses, which is private. You could probably use GetPID() on the PSN and then call kill() (man 2 kill) with SIGQUIT or SIGKILL.

-- Finlay


  • Follow-Ups:
    • Re: Processes
      • From: Douglas Davidson <email@hidden>
References: 
 >Processes (From: Alex Keresztes <email@hidden>)

  • Prev by Date: NSWorkspace notification problems
  • Next by Date: Re: NSWorkspace notification problems
  • Previous by thread: Re: Processes
  • Next by thread: Re: Processes
  • Index(es):
    • Date
    • Thread