Created
July 24, 2014 14:52
-
-
Save alloy/97eafe313e43f4cd7150 to your computer and use it in GitHub Desktop.
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
def loadView | |
view = NSView.new | |
def view.drawRect(rect) | |
NSColor.redColor.setFill | |
NSRectFill(rect) | |
end | |
self.view = view | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment