checking to see if the application exists in a certain location
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.