Last active
April 20, 2017 09:55
-
-
Save julianburr/5e55dfc0bf84d1486f89aaee73f1f1ce to your computer and use it in GitHub Desktop.
Medium - Example showing the different syntax options in cocoascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dot syntax | |
var openPanel = NSOpenPanel.openPanel(); | |
openPanel.setTitle('Hello World'); | |
openPanel.runModal(); | |
// Bracket syntax | |
var openPanel = [NSOpenPanel openPanel] | |
[openPanel setTitle:'Hello World'] | |
[openPanel runModal] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment