[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cairo vs. art and PDFKit

From: Riccardo Mottola
Subject: Re: cairo vs. art and PDFKit
Date: Mon, 27 Feb 2012 09:07:38 +0100
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:8.0) Gecko/20111219 Thunderbird/8.0

Hi Eric,

thank you for looking at this. with the suggested patch, things work clean again.

I wonder why it worked on other backends :)


On 02/24/12 21:01, Eric Wasylishen wrote:
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.


On 2012-02-24, at 9:17 AM, Riccardo Mottola wrote:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]