ccgus / CocoaScript

JavaScript + the Cocoa frameworks, and then ObjC brackets show up to party as well.
Other
618 stars 58 forks source link

MOJavaScriptObject.h import in COSGifAnimatior.h error #19

Closed uhunkler closed 10 years ago

uhunkler commented 10 years ago

The "#import <CocoaScript/MOJavaScriptObject.h>" throws a compile error. I changed the line to #import "MOJavaScriptObject.h" to get the project compiled.

May be it's an issue with the code and you may be interested in the change.

ccgus commented 10 years ago

I'm not against this change- but I don't know why it is needed. What's the error you're getting? If you command click on <CocoaScript/MOJavaScriptObject.h> in Xcode, does the header open up?

uhunkler commented 10 years ago

In Xcode a command click on the link opens the header but when I try to build CocoaScript with your CLI command "cocoascript/bin/cosbuild.sh -n" I get the following build error:

In file included from /tmp/coscript/src/framework/COSGifAnimator.m:9:
/tmp/coscript/src/framework/COSGifAnimator.h:11:9: fatal error: 
      'CocoaScript/MOJavaScriptObject.h' file not found
#import <CocoaScript/MOJavaScriptObject.h>
        ^
1 error generated.

After the above proposed change the error is gone.

ccgus commented 10 years ago

Ohhhh- the command line tool. Duh.