resizing PDF obtained from dataWithPDFInsideRect:

2009-11-19 Thread Chinh Nguyen
hes wide (@ 300dpi) instead of 25 inches wide (@ 72dpi). Not a huge deal because I still recommend our users use PDF but some of them have legacy apps that don't support PDF. The example I was able to find on this created a new NSBitmapImageRep and copied the image data i

subclassing NSApplication run

2008-12-18 Thread Chinh Nguyen
es not become key. I can add code to handle this but I'm concerned there are other things going on in NSApplication's run method do/while loop that I'm missing. Can anyone tell me what else I need to do in my event loop? A

Re: clearing NSView outside of drawRect:

2008-09-12 Thread Chinh Nguyen
e source of the lag and it's not my selection view's drawRect: because my test case is simply drawing a line between a fixed point and the current location of the mouse. I have not tried a mouse-tracking loop yet. -Chinh Nguyen [EMAIL PROTECTED] ___

clearing NSView outside of drawRect:

2008-09-11 Thread Chinh Nguyen
ly thing I can think of to try next is to use similar logic in Cocoa and to place the custom view in a borderless window and use NSRectFillUsingOperation(rect, NSCompositeClear). I was hoping to avoid having to do that and deal with keeping the two view's positions and sizes in sync

converting Carbon printing to Cocoa

2008-04-01 Thread Chinh Nguyen
inting it? PS. [[NSPrintPanel printPanel] runModal] seems to crash and I can't figure out why. -Chinh Nguyen [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t