Questions regarding Frameworks

Discussion in 'Mac Programming' started by jinksys, Aug 11, 2009.

  1. jinksys macrumors newbie

    jinksys

    Joined:
    Dec 16, 2008
    Location:
    Saint Louis, Mo
    #1
    I am trying to write a framework. In my project I am trying to use this framework:
    http://code.google.com/p/json-framework/

    but when I try to build my app I keep getting 'header not found' errors.
    I'm importing <JSON/JSON.h> so I looked in there. There I saw

    #import "SBJSON.h"

    If I changed that to #import <JSON/SBJSON.h> (and the other headers statements), it worked. The developer says that I shouldn't need to do that and that it works 'out of the box'. So my question is, what is the proper way to include header files in a framework? I see a directory in his framework that says PrivateHeaders, but I can't find any information on that. Also, When I tell Xcode to include my headers in my framework, do I have to go in and manually change the import statements?
     
  2. MrFusion macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #2
    FYI:
    http://rentzsch.com/cocoa/embeddedFrameworks
     

Share This Page