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
// | |
// MOWTextField.h | |
// | |
// | |
// Created by Sanjay Madan on 03/21/13. | |
// Copyright (c) 2013 mowglii.com. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
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
// Regarding http://indiestack.com/2017/06/evergreen-images/ | |
// Could evergreenImage() be rewritten like this? | |
private func evergreenImage() -> NSImage { | |
let imageSize = NSSize(width: 64, height: 64) | |
let image = NSImage.init(size: imageSize, flipped: false) { (rect) -> Bool in | |
let fontAttributes = [NSFontAttributeName: NSFont.systemFont(ofSize: 60)] | |
NSString(string: "🌲").draw(in: rect, withAttributes: fontAttributes) | |
return true | |
} |