Re: ATSUI text in an NSView problems
Re: ATSUI text in an NSView problems
- Subject: Re: ATSUI text in an NSView problems
- From: Rosyna <email@hidden>
- Date: Sun, 14 May 2006 13:35:33 -0700
How are you drawing the ATSUI text? Are you drawing it into the
CGContextRef that represents the NSView?
Ack, at 5/14/06, Moray Taylor said:
I'm using ATSUI to draw text to an NSView, and it works great, apart
from one problem....
When I try to 'grab' an image of the NSView using
NSData * dat = [myView dataWithPDFInsideRect:NSMakeRect(0,0,500,500)];
[dat writeToFile:@"/Users/me/Desktop/test.pdf" atomically:YES];
I get a PDF with everything on it, apart from the text drawn with
ATSUI. This worked fine when I used NSAttributedString for my text,
but it was too slow (and a few other issues), so I had to go to
ATSUI.
How can I get the ATSUI text included in the image? As I am trying
to create a thumbnail of my NSView, it looks a bit silly that none
of the text is included.
Thanks for any suggestions.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden