Closed onmyway133 closed 8 years ago
Check out the examples: https://github.com/ccgus/CocoaScript/blob/master/examples/NSImage%20Draw%20Buttons.jstalk
@ccgus thanks. I see that we can use
var window = NSWindow.alloc().initWithContentRect_styleMask_backing_defer_(
NSMakeRect(0, 0, 1365, 500), NSTitledWindowMask, NSBackingStoreBuffered, false)
@onmyway133 you just saved me from 90 minutes of headache, thanks for sharing what you found.
@zschuessler Hope that it helps. Btw, if you're developing Sketch plugin, read my story here https://medium.com/@onmyway133/create-sketch-plugin-b97fb919e4c4#.qzfz04c38 on switching to using Objc framework
Hi, some methods like
- (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
has many arguments, how to call them in cocoascript?Thanks