This was a simple oversight on my part. the drawInRect:fromRect:operation:fraction:
was working fine, but I left in the last NSRectFill(dirtyRect)
line, which essentially painted over the image I was drawing. This code now works:
#import "OrangeBGView.h"
@implementation OrangeBGView
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor blueColor] setFill];//To easily see if image isn't loading
NSRectFill(dirtyRect);
[[NSImage imageNamed:@"orangeGradientBGWithTopEdgeShadow.png"] drawInRect:dirtyRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1];
}
@end