Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.