Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I cannot add a (system) framework to a Cocoa Application



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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Greg Guerin <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Anders Sommer Lassen <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Chris Espinosa <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: Anders Sommer Lassen <email@hidden>)
 >Re: I cannot add a (system) framework to a Cocoa Application (From: "Shawn Erickson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.