Re: Calling Cocoa APIs from a command line application
Re: Calling Cocoa APIs from a command line application
- Subject: Re: Calling Cocoa APIs from a command line application
- From: John Siracusa <email@hidden>
- Date: Sat, 13 Sep 2003 14:29:19 -0400
On 9/13/03 1:22 PM, Scott Anguish wrote:
>
On Saturday, September 13, 2003, at 1:00 PM, John Siracusa wrote:
>
> I want to call an NSWorkspace method from a simple command-line script. I
>
> naively thought this would work:
>
>
>
>
I think there might be an easier way to do this. Maybe AppleScript,
>
which you can fire off from a script trivally. You want the Finder to
>
notice, right?
Yeah, but I want to do it from within a "normal" Unix C/C++ program.
>
> new.m:5: cannot find interface declaration for `NSConstantString'
>
>
Did you link against AppKit as well?
I'm doing all this from the command line, not from within Project Builder.
What's the incantation for linking against AppKit?
>
Also, at run time, you won't have an initialized app instance, and if
>
nobody is logged in, this may prevent your app from running.
It will only be run if someone is logged in.
>
> /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:
>
> 109: header file 'Foundation/NSURLError.h' not found
>
>
I've seen this before, do you have the full, release of Safari 1.0
>
installed?
Yep.
-John
_______________________________________________
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.