-1

I'm trying to use FinderApplication and so I want to import Finder.h in my code, but Xcode tell me it can not find the Finer.h. can anybody tell me how to use FinderApplication ? my platform is mountain lion and Xcode 5.0 thanks.

Jet
  • 129
  • 1
  • 8

1 Answers1

0

I don't know what a "FinderApplication" is. You may want to explain that a bit further.

Nonetheless, in order to use Finder.h, you need to ensure that the CoreServices framework is included in your Xcode project.

Don't worry about trying to import the Finder.h file directly, though. It's imported by CarbonCore, which in turn is imported by CoreServices. If you need an #import statement, just use

#import <CoreServices/CoreServices.h>

and you should be good to go.

Extra Savoir-Faire
  • 6,026
  • 4
  • 29
  • 47
  • I just saw this class from . I have added this header file actually, which did include Finder.h, but still can not find this class. – Jet Nov 19 '13 at 05:05
  • But did you add the CoreServices framework as well? Just adding the #import isn't enough. – Extra Savoir-Faire Nov 19 '13 at 05:06
  • yes, I added this framework first, then I added the header file. anyway, thanks:) – Jet Nov 19 '13 at 11:25