CocoaScript icon indicating copy to clipboard operation
CocoaScript copied to clipboard

JavaScript + the Cocoa frameworks, and then ObjC brackets show up to party as well.

Results 18 CocoaScript issues
Sort by recently updated
recently updated
newest added

I'm not sure if you'll want to take everything here, as there might be some Sketch specific things (I'm not certain of that, but I'm aware that I haven't had...

I’ve been debugging a Sketch script, and hit this guy in the debugger: ``` ================================================================= ==30290==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000ac7d8 at pc 0x000102d2e62a bp 0x7fff5fbf9430 sp 0x7fff5fbf9428 READ of...

Hello! I'm writing a plugin for Sketch, and inside the cocoa script I use `performSelectorInBackground_withObject` to start a new thread and don't block the execution of a log running process....

Is it possible to register a global exception handler from within JS executed by CocoaScript? In a typical environment, this can be done with `addEventListener('error', …)`, but of course the...

Allowing require() in addition to the import macro would enable you to use a bunch of modules from the npmjs repository in your CocoaScript code. If a depended on module...

In 10.12, these two work as expected: ``` var a = NSArray.arrayWithObjects('a', 'b', 'c', nil) var dict = NSDictionary.dictionaryWithObjectsAndKeys('key1', 'object1', nil); ``` However, in 10.13, I'm getting: ``` ObjC method...

I wrote a framework in Swift but cannot access classes marked as `@objc public` from cocoascript after loading the framework using Mocha. I created an [example to illustrate this](https://github.com/mludowise/Mocha-Swift-TestFramework). In...

Ref #32 I understand that #32 is closed, but not sure that's because it's hard to do async stuff, or supporting block, or both. I'd like to use block based...

Hi, how to declare class with inheritance like this, or how can we achieve the same thing ``` js class ViewController: NSViewController { function viewDidLoad() { super.viewDidLoad() } } ```...