Re: Application is not available in the launched applications list.
Re: Application is not available in the launched applications list.
- Subject: Re: Application is not available in the launched applications list.
- From: Kyle Sluder <email@hidden>
- Date: Mon, 25 Jan 2010 00:08:10 -0800
On Sun, Jan 24, 2010 at 11:36 PM, Ramesh P <email@hidden> wrote:
> My cocoa application is running successfully. But when I use this code
> NSLog(@"%@",[[NSWorkspace sharedworkspace]launchedapplication]);
> in another application, it is not printing my application name. What is the
> problem with my running application?
> Now I opened the Force Quit in my MAC. There also my application name is not
> available. How can solve this? Help me.
First of all, case matters. +sharedworkspace is *not* the same as
+sharedWorkspace. Either you didn't copy/paste your code directly, or
you are ignoring compiler warnings.
If your app doesn't appear in the Force Quit dialog, one of the
following is happening:
1. You're not writing a regular Cocoa app.
2. You have specified LSUIElement or LSBackgroundOnly, or used
TransformProcessType to achieve the same effect.
--Kyle Sluder
_______________________________________________
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