title: How do I draw a NSImage onto a NSView?
body: <p>I'm pretty new to drawing images in general with Objective C. I have done image drawing in iPhone development, but now I want to do so on a Mac. In short, what is the Mac equivalent of the iPhone code below?</p>
  
  <pre><code>- (void) drawRect: (CGRect) rect
  {
      [super drawRect:rect];
  
      UIImage *anotherimage = [UIImage imageNamed:@"alert.png"];
      CGPoint imagepoint = CGPointMake(10,0);
      [anotherimage drawAtPoint:imagepoint];
  
  }
  </code></pre>