Re: NSWorkspace's isFilePackageAtPath: returns always NO
Re: NSWorkspace's isFilePackageAtPath: returns always NO
- Subject: Re: NSWorkspace's isFilePackageAtPath: returns always NO
- From: "Louis C. Sacha" <email@hidden>
- Date: Fri, 15 Oct 2004 06:36:08 -0700
Hello...
I have this simple function and no matter if filePath stores a
folder or a package, the function always returns NO.
0 == FALSE == [nil someMessage]
If you have zero-link turned on, turn it off (or alternatively,
temporarily switch to the deployment build style). Rebuild your tool.
If you get an undefined symbol error for NSWorkspace, then you
haven't added the Cocoa framework correctly.
Go to the "Project Menu" and select "Add to project..." and choose
/System/Library/Frameworks/Cocoa.framework. You can also navigate
there in the finder and drag the framework into xcode (to the file
list in the project window).
Hope that helps,
Louis
...
I need this function in a command line utility. The project was
created in Xcode from the Foundation Tool preset. I added the line
"#import <Cocoa/Cocoa.h>" right below "#import
<Foundation/Foundation.h>". Is there something else I have to do to
make use of the NSWorkspace class?
Thanks for any help,
Adrian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden