Hi Riccardo,
I looked in to this a bit more, and what I said before isn't really correct.
-[NSImageRep draw] is a primitive method so subclasses must override it, so the
error is really in PDFKit.
Probably the simplest fix is to keep the PDFKit's -drawInRect: as-is, and add a
draw method
- (void) draw
{
NSSize size = [self size];
[self drawInRect: NSMakeRect(0, 0, size.width, size.height)];
}
I added a comment to NSImageRep.h to make this more explicit.
-Eric
On 2012-02-24, at 9:17 AM, Riccardo Mottola wrote: