Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Jul 28, 2011 6:56 PM

Reply

There are no replies.

Script that worked in Snow Leopard won't work in Lion...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.