title: How to rotate text in NSView? (Mac OS, Cocoa, Swift)
body: <p>I am new to Cocoa/Swift applications for Mac OS 10.11 (Not iOS). I created an <code>NSView</code> with the size of <code>A4</code> paper, drew some simple lines and some text using <code>NSString.drawAtPoint</code> within <code>drawRect()</code>. So far it works.</p>
  
  <p>However, from time to time, I need a few characters to be turned 90 degrees, and some text needs to be scaled at X, or Y direction. That is where I don't know how to do it. Please can someone tell me how to achieve these?</p>
  
  <p>Many thanks.</p>