When I use:
[iconImage drawInRect:NSMakeRect(cellFrame.origin.x+5,yOffset+3,cellFrame.size.height-6, cellFrame.size.height-6)
fromRect:NSMakeRect(0,0,[iconImage size].width, [iconImage size].height)
operation:NSCompositeSourceOver
fraction:1.0];
to draw some images in the NSOutlineView cells, the images are vertically flipped upside down. How can I fix it ?
Thanks
Use the method
along with
- (void)lockFocusFlipped:(BOOL)flippedto draw the image upside down. From the NSImage Reference manual.