• 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: Problem using my Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using my Framework


  • Subject: Re: Problem using my Framework
  • From: Graham <email@hidden>
  • Date: Mon, 12 Jun 2006 21:16:50 -0400

Naturally, having spent hours trying to solve this, and then sending an email to the group, I now solved it though the solution seems a little odd to me.

In the headers of my framework classes, when importing other headers of the the framework, the framework/ prefix is needed on the filename. I understand this prefix (subdirectory) when importing the framework files into an app that is using it, but within the context of the framework itself it doesn't add up to me, but then I'm new to this. Perhaps someone could explain?

Thanks

On Jun 12, 2006, at 8:42 PM, Graham wrote:

I'll try to explain this as best I can:

I have created a Framework with a bunch of classes.
Some of the header files for those classes #import header files of other classes in the framework since they refer to those other classes.


I have created an application that uses and links to my framework.
Some of the classes in my app, import some of the headers from the framework.
I import the frame headers as you should with the framework name prefix and a slash e.g.:
#import <Charlie/Header.h>


The compiler is giving me errors that it cannot find some of the header files, specifically when a framework header includes another framework header, that included one cannot be found. I guess that is because when compiling the app it can find the framework headers since they have the framework/, yet headers that the headers include do not have the framework/ and thus it cannot find them.

To get around this I can add the directory where the framework headers are to the header search path, but I then get lots of duplicate defined interface errors.

I don't know if I explained this very well, but any assistance would be appreciated.

Thanks
_______________________________________________
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



_______________________________________________
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


References: 
 >Problem using my Framework (From: Graham <email@hidden>)

  • Prev by Date: Re: Routing Information
  • Next by Date: Re: Freeze Dried Objects/Archiving
  • Previous by thread: Problem using my Framework
  • Next by thread: Re: Problem using my Framework
  • Index(es):
    • Date
    • Thread