• 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
How to know if the System Preferences app is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to know if the System Preferences app is running


  • Subject: How to know if the System Preferences app is running
  • From: TACKEL <email@hidden>
  • Date: Tue, 26 Nov 2002 19:04:08 +0100

Hi,

I can know if it is opened using the "top" command with NSTask, but do you
know any other way?

Txs,
Tackel.

PS - Although it's not important using NSTask, the "grep" command I run inside
the task doesn't work. Do you know how I could run it? Is it necessary to create
another task and pipe both tasks?

[checkTask setLaunchPath: @"/usr/bin/top"];
[checkTask setArguments:
[NSArray arrayWithObjects: @"-l1", @"|", @"grep", @"System\\ Pre", nil]];
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to know if the System Preferences app is running
      • From: "Clark S. Cox III" <email@hidden>
    • Re: How to know if the System Preferences app is running
      • From: Chris Ridd <email@hidden>
    • Re: How to know if the System Preferences app is running
      • From: j o a r <email@hidden>
    • Re: How to know if the System Preferences app is running
      • From: Steve Sobek <email@hidden>
  • Prev by Date: Re: customizing NSTextView
  • Next by Date: Re: How to know if the System Preferences app is running
  • Previous by thread: vertical ruler misbehavior...
  • Next by thread: Re: How to know if the System Preferences app is running
  • Index(es):
    • Date
    • Thread