• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWorkspace's isFilePackageAtPath: returns always NO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSWorkspace's isFilePackageAtPath: returns always NO
      • From: "Adrian R. Foltyn" <email@hidden>
    • Re: NSWorkspace's isFilePackageAtPath: returns always NO
      • From: "Louis C. Sacha" <email@hidden>
References: 
 >NSWorkspace's isFilePackageAtPath: returns always NO (From: "Adrian R. Foltyn" <email@hidden>)

  • Prev by Date: Re: OSD api?
  • Next by Date: Re: NSWorkspace's isFilePackageAtPath: returns always NO
  • Previous by thread: NSWorkspace's isFilePackageAtPath: returns always NO
  • Next by thread: Re: NSWorkspace's isFilePackageAtPath: returns always NO
  • Index(es):
    • Date
    • Thread