MarkdownEditor
MarkdownEditor copied to clipboard
Don't call .init directly
IMHO Instead of
textEditor.font = NSFont.init(name: "Helvetica Neue", size: 16.0)
then use
textEditor.font = NSFont(name: "Helvetica Neue", size: 16.0)
Haha, sometimes I do that to force intellisense to show me the parameters, then I forget to remove the 'init'.
Thanks.
Oh wow I'm gonna use that tip, I always struggle to remember constructor params!