On Sun, Jan 24, 2010 at 11:36 PM, Ramesh P <ramesh.pauldu...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com