ccgus / CocoaScript

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

NSArray.arrayWithObjects and NSDictionary.dictionaryWithObjectsAndKeys not working in 10.13 #48

Open bomberstudios opened 7 years ago

bomberstudios commented 7 years ago

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