Hi,
Just trying to get some basic NSWorkspace stuff going but can't compile my app. I thought it was my code so I lifted the following from another site and still get the same errors:
The errors are:
I read that it could be that I'm not including the correct libraries. I am including the following in my header file:
Anyone know what the problem is?
Thanks in advance..
Just trying to get some basic NSWorkspace stuff going but can't compile my app. I thought it was my code so I lifted the following from another site and still get the same errors:
Code:
NSString * path = @"/Developer/About Xcode Tools.pdf";
NSURL * fileURL = [NSURL fileURLWithPath: path];
NSWorkspace * ws = [NSWorkspace sharedWorkspace];
[ws openFile:[fileURL path] withApplication:@"Safari"];
The errors are:
Code:
".objc_class_name_NSWorkspace", referenced from:
literal-pointer@__OBJC@__cls_refs@NSWorkspace in AppController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I read that it could be that I'm not including the correct libraries. I am including the following in my header file:
Code:
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <ApplicationServices/ApplicationServices.h>
#import <AppKit/AppKit.h>
Anyone know what the problem is?
Thanks in advance..