MarkdownEditor icon indicating copy to clipboard operation
MarkdownEditor copied to clipboard

Don't call .init directly

Open neoneye opened this issue 7 years ago • 2 comments

IMHO Instead of

textEditor.font = NSFont.init(name: "Helvetica Neue", size: 16.0)

then use

textEditor.font = NSFont(name: "Helvetica Neue", size: 16.0)

neoneye avatar Mar 11 '17 08:03 neoneye

Haha, sometimes I do that to force intellisense to show me the parameters, then I forget to remove the 'init'.

Thanks.

kuyawa avatar Mar 11 '17 11:03 kuyawa

Oh wow I'm gonna use that tip, I always struggle to remember constructor params!

kradical avatar Mar 11 '17 11:03 kradical