• 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: How to know if Classic is running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know if Classic is running?


  • Subject: Re: How to know if Classic is running?
  • From: Finlay Dobbie <email@hidden>
  • Date: Fri, 18 Apr 2003 12:53:46 +0100

On Thursday, April 17, 2003, at 08:06 am, Nick Zitzmann wrote:

1. (Best) Use the sysctl() function to get a list of processes from the kernel, then check to see if TruBlueEnvironment is present. See the sysctl() function (not the program) man page and the header files for details.

2. Use GetNextProcess() and GetProcessIdentification() from the Carbon Process Manager.

I'd argue that the Process Manager route is better because IMO cleaner and I think that the sysctl() function returns some Apple private structures which are documented as being unstable in the headers, but hey, up to you :-)

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to know if Classic is running? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Does release Really Release?
  • Next by Date: Re: Make the action of a NSMenuItem, which has a subMenu, to work
  • Previous by thread: Re: How to know if Classic is running?
  • Next by thread: AppleScript issue
  • Index(es):
    • Date
    • Thread