• 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
launchApplication (NSWorkSpace) : the icon is always displayed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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);
}
}


  • Follow-Ups:
    • Re: launchApplication (NSWorkSpace) : the icon is always displayed
      • From: Douglas Davidson <email@hidden>
    • Re: launchApplication (NSWorkSpace) : the icon is always displayed
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: problem overriding setImage and image methods in NSTextFieldCell in java cocoa
  • Next by Date: NSOutlineView Bug - help
  • Previous by thread: problem overriding setImage and image methods in NSTextFieldCell in java cocoa
  • Next by thread: Re: launchApplication (NSWorkSpace) : the icon is always displayed
  • Index(es):
    • Date
    • Thread