Skip to content

Instantly share code, notes, and snippets.

@KevinGutowski
Last active March 22, 2020 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KevinGutowski/5f83e43231fba32a8dd29938020c96f3 to your computer and use it in GitHub Desktop.
Save KevinGutowski/5f83e43231fba32a8dd29938020c96f3 to your computer and use it in GitHub Desktop.
Color Picker Sketch [WIP]
let dialog = NSAlert.alloc().init()
let view = NSView.alloc().initWithFrame(NSMakeRect(0,0,100,100))
let button = MSColorWell.alloc().initWithFrame(NSMakeRect(0,0,50,50))
button.initialColor = NSColor.redColor()
button.target = button
button.canDisplayPopover = true
button.setAction("presentColorPicker:")
view.addSubview(button)
dialog.accessoryView = view
dialog.runModal()
//presentColorPicker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment