ccgus / CocoaScript

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

crash from unimplemented copyWithZone: #20

Closed wildthink closed 10 years ago

wildthink commented 10 years ago

Assume project! Just starting to have fun and...

The trick code enclosed errors with

-[MOJavaScriptObject copyWithZone:]: unrecognized selector sent to instance 0x600000621b40

var url = [NSURL URLWithString:"http://slashdot.com"];

var session = [NSURLSession sharedSession]; [[session dataTaskWithURL:url completionHandler: function (data, response, error) { [[COScript application:"Cocoa Script Editor"] displayDialog:message]; }] resume];

ccgus commented 10 years ago

Cocoa Script can't pass JS functions where objc blocks go. It would certainly be nice to have though.