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

Re: Process app.


  • Subject: Re: Process app.
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 30 Jun 2008 08:27:22 -0700


On 30 Jun '08, at 6:23 AM, Толя Макаров wrote:

Yes, that's clear, but how to get this list? I have found 2 ways: ps
-ef and [[NSWorkspace sharedWorkspace] launchedApplications].

There are underlying APIs that tools like ps and top use; you can call those. I'm not familiar with the details, however. You can look in the Darwin repository for the source code of either of those tools, or you can ask on the darwin-userlevel mailing list. (Cocoa-dev is off topic for this, since it's not related to any Cocoa APIs.)


NSWorkspace isn't going to help, because it's in AppKit, and daemon processes (the only kind that could be running without loginwindow) aren't allowed to link against AppKit.

—Jens_______________________________________________

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: Process app.
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >RE: Process app. (From: Толя Макаров <email@hidden>)

  • Prev by Date: Re: initWithFrame deosn't get called
  • Next by Date: Re: Connecting to non-standard HTTP ports with authorization
  • Previous by thread: RE: Process app.
  • Next by thread: Re: Process app.
  • Index(es):
    • Date
    • Thread