• 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
Getting info of a background-only app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting info of a background-only app


  • Subject: Getting info of a background-only app
  • From: Manoj Patwardhan <email@hidden>
  • Date: Sat, 26 Apr 2003 08:55:20 -0400

I have a background-only application (with the NSUIElement flag set to 1).

At runtime, my application needs to figure out its full path because it
could be located anywhere, not necessarily in the Applications folder. How
can I do this programmatically for a background-only application?

NSWorkspace has a method to return the info dictionary of the active
application (which contains a key for the applications's full path).
However, for a background-only application, NSWorkspace returns nil for the
info dictionary.

Thank you!

Manoj Patwardhan
_______________________________________________
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: Getting info of a background-only app
      • From: Dan Bernstein <cocoa-dev%email@hidden>
  • Prev by Date: subclassing NSColorWell
  • Next by Date: Re: Getting info of a background-only app
  • Previous by thread: Re: subclassing NSColorWell
  • Next by thread: Re: Getting info of a background-only app
  • Index(es):
    • Date
    • Thread