• 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: Calling Cocoa APIs from a command line application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling Cocoa APIs from a command line application


  • Subject: Re: Calling Cocoa APIs from a command line application
  • From: Andy Lee <email@hidden>
  • Date: Sat, 13 Sep 2003 16:32:03 -0400

At 3:54 PM -0400 9/13/03, Dave Keck wrote:
Hmm... my Foundation.h file doesn't mention NSURLError.h anywhere; you might try taking a look at yours. Does it mention NSURLError.h? Apparently your Foundation.h file has a few more lines in it (it at least has 109 lines, as mentioned by the error you gave). My file only has 99 lines. Humph.

My Foundation.h does mention NSURLError.h, inside an #ifdef that seems to imply it depends on the OS version:


#if defined(MAC_OS_X_VERSION_10_2) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2)

...

#import <Foundation/NSURLError.h>
#endif


This is on 10.2.6 with the December 2002 Dev Tools. And NSURLError.h does exist in my Foundation headers directory.

Maybe because you're compiling from the command line, the #ifdef is not having its intended effect, because you're not getting the compilation parameters PB would have set up for you.

At 3:13 PM -0400 9/13/03, John Siracusa wrote:
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:109:
header file 'Foundation/NSURLError.h' not found

Googling doesn't turn up much. Someone mentioned that this might be related
to Safari somehow? I'm running Jaguar with the latest updates, BTW.

Maybe they were suggesting you install the Web Kit SDK? To find it, log in at <http://connect.apple.com>, go to "Download Software," select "WWDC 2003," and scroll all the way down to the bottom.

--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Calling Cocoa APIs from a command line application
      • From: John Siracusa <email@hidden>
References: 
 >Re: Calling Cocoa APIs from a command line application (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Calling Cocoa APIs from a command line application
  • Next by Date: Re: Can you bypass a file when using initWithContentsOfFile?
  • Previous by thread: Re: Calling Cocoa APIs from a command line application
  • Next by thread: Re: Calling Cocoa APIs from a command line application
  • Index(es):
    • Date
    • Thread