私は、Objective C を使用して一般的に画像を描画するのはかなり初めてです。iPhone 開発で画像描画を行ったことがありますが、今は Mac で描画したいと考えています。要するに、以下の iPhone コードに相当する Mac は何ですか?
- (void) drawRect: (CGRect) rect
{
[super drawRect:rect];
UIImage *anotherimage = [UIImage imageNamed:@"alert.png"];
CGPoint imagepoint = CGPointMake(10,0);
[anotherimage drawAtPoint:imagepoint];
}