I have this program that checks if Chrome is installed on your computer. If it is not installed it will make a button on the main interface not visible. Where do I put the method that does this so it is triggered on startup? Here is my code:
Thanks in advance!
Code:
-(IBAction)doesChromeExist:(id)sender{
NSString *chromePathName = [@"/Users/" stringByAppendingString:NSUserName()];
chromePathName = [chromePathName stringByAppendingString:@"/Applications/Chrome.app"];
NSFileManager *manager;
manager = [NSFileManager defaultManager];
if([manager fileExistsAtPath:chromePathName]==YES){
[clearChromeCache setTransparent:TRUE]; }
}