CocoaScript icon indicating copy to clipboard operation
CocoaScript copied to clipboard

NSArray.arrayWithObjects and NSDictionary.dictionaryWithObjectsAndKeys not working in 10.13

Open bomberstudios opened this issue 8 years ago • 0 comments

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 arrayWithObjects: requires 1 argument, but JavaScript passed 4 arguments
ObjC method dictionaryWithObjectsAndKeys: requires 1 argument, but JavaScript passed 3 arguments

bomberstudios avatar Aug 24 '17 12:08 bomberstudios