• 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
checking to see if the application exists in a certain location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checking to see if the application exists in a certain location


  • Subject: checking to see if the application exists in a certain location
  • From: Charles Bennion <email@hidden>
  • Date: Mon, 5 May 2003 10:38:35 -0700

I have been working on creating a Status Bar application that will
launch a few applications from a NSMenu. I have it working just fine
but I am interested in getting it to verify that the application exists
before it tries to launch it and if does not exists to display a dialog
that it is not installed. Right now this is all of the code that it
uses when selecting the NSMenu item:

-(IBAction)launchDTLogin:(id)sender{
// It launches much faster with the fullPathForApplication set
[[NSWorkspace sharedWorkspace]
fullPathForApplication:@"/Applications/DTApps/LoginApp.app"];
[[NSWorkspace sharedWorkspace] launchApplication:@"LoginApp.app"];
}


I am new to Cocoa/Obj-C and any other language similar as I am still
learning. Any help would be great



Charlie Bennion
DTI Applications Support Analyst
Las Vegas Review Journal
702.387.2947
_______________________________________________
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.

  • Follow-Ups:
    • Re: checking to see if the application exists in a certain location
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Can't modify existing user interface
  • Next by Date: clicking in NSMatrix.
  • Previous by thread: Re: Making my own NSScrollers?
  • Next by thread: Re: checking to see if the application exists in a certain location
  • Index(es):
    • Date
    • Thread