Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bomberstudios opened this issue Aug 24, 2017 · 0 comments

Comments

@bomberstudios
Copy link

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
kyleweiner added a commit to kyleweiner/sketch-palettes that referenced this issue Sep 20, 2017
Works around ccgus/CocoaScript#48, which was preventing the Open panel from appearing on macOS High Sierra 10.13 when selecting the "Load Palette…" option.
tadija added a commit to tadija/AEIconizer that referenced this issue Sep 28, 2017
clemensmol added a commit to clemensmol/Content-generator-sketch-plugin that referenced this issue Mar 27, 2018
[NSArray arrayWithObjects] stopped working on 10.13. This is a bug caused by CocoaScript itself. Reference on: ccgus/CocoaScript#48 . Workaround this bug by using [NSArray arrayWithArray] instead.

Fixes timuric#175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant