Re: Getting info of a background-only app
Re: Getting info of a background-only app
- Subject: Re: Getting info of a background-only app
- From: Dan Bernstein <cocoa-dev%email@hidden>
- Date: Sat, 26 Apr 2003 16:04:15 +0300
-[NSBundle mainBundle] or even -[[NSBundle mainBundle] executablePath]
-- Dan
On Saturday, April 26, 2003, at 03:55 PM, Manoj Patwardhan wrote:
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.
_______________________________________________
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.