The last 3 days I have had problems adding frameworks. Now suddenly, after reporting this in the forum, I can add the frameworks without problems, and the header files are included also.
??????
But still I have problems compiling my project.
I have added the Quartz framework. I can see that all frameworks beneath it, are added recursively. That's fine.
I now want to use the IKImageView. But this gives problems.
When I compile the following code:
#import <Cocoa/Cocoa.h> #import <ImageKit/IKImageView.h>
@interface untitled : NSObject {
IBOutlet IKImageView *imageView; }
@end
I get an error message saying that the IKImageView.h does not exist.
I then ask myself, how can the Cocoa.h file be found when the IKImageView.h can not.
Do I have to specify search path for the Quartz framework or ....
On Jul 11, 2008, at 8:59 PM, Shawn Erickson wrote: On Fri, Jul 11, 2008 at 11:44 AM, Anders Sommer Lassen <email@hidden> wrote:
If I create a new Cocoa Application, and check the Cocoa framework, which is
added by default, the path is:
/System/Library/Frameworks/Cocoa.framework
If I check the Cocoa.framework, I can see it has headers. I guess that these
have been installed automatically by the Xcode Tools installer. I did not do
it manually.
So the question is now, which frameworks should I use:
1) the frameworks in the system path
2) the frameworks in the /Developer/SDKs/MacOSX10.5.sdk path
Always the framework at the system path. Xcode will handle remapping that as needed based on your SDK setting.
-Shawn
|