Script that worked in Snow Leopard won't work in Lion...
Hi there,
I have this simple script that I built that can open folders by revealing the finder with a simple click of a button and if the application is located in the applications folder. This was all coded in Snow Leopard before I upgraded to Lion. Now it won't work!
Here's the code :
openFolder.h
#import <Foundation/Foundation.h>
@interface openFolder : NSObject {
}
- (IBAction)revealInFinder:(id)sender;
@end
openFolder.m
#import "openFolder.h"
@implementation openFolder
- (IBAction)revealInFinder:(id)sender
{
NSString *path = @"/Applications/Cargo.app/Contents/Resources/Assets/Save/";
[[NSWorkspacesharedWorkspace] selectFile: path inFileViewerRootedAtPath: nil];
}
@end
In advance, thank you to anyone who could solve this odd problem. My best guess is that "IBAction" is an outdated function since Xcode 4.1
Mac mini, Mac OS X (10.7), Xcode 4.1