launchApplication (NSWorkSpace) : the icon is always displayed
launchApplication (NSWorkSpace) : the icon is always displayed
- Subject: launchApplication (NSWorkSpace) : the icon is always displayed
- From: <email@hidden>
- Date: Thu, 18 Oct 2001 12:19:49 GMT
- Send-by: 195.207.101.123 with Mozilla/4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
Hi,
I developed a dockling which displays an menu where I
could start an application.
I would like to start the application without
displaying the icon in the dockling. For that I used
the function launchApplicatin with NO as argument for
showIcon. It is not working, the icon is always
displayed.
Is it a well known bug or does it come from my code
(see below) ??
-(void)itemSelected:(id)sender
{
int answer;
NSString *dataPath =
@"/Applications/AlcatelDiagnostics.app";
if (![[NSWorkspace sharedWorkspace]
launchApplication:dataPath
showIcon:NO autolaunch:NO])
{
answer = NSRunAlertPanel (@"Cannot start
AlcatelDiagnostics.app
",@"",@"",@"",nil);
}
}