Created
January 30, 2017 22:41
-
-
Save tylergaw/1c7ba1d8480224278a8b3d32bbd83b4b 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
// Create a new NSImage instance by any init method | |
var img = $.NSImage.alloc.initByReferencingFile(/*the image path*/); | |
// Don't use parens "()" when a method takes zero arguments | |
img.lockFocus; | |
// and | |
img.unlockFocus; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment