• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ATSUI text in an NSView problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ATSUI text in an NSView problems
      • From: Moray Taylor <email@hidden>
References: 
 >ATSUI text in an NSView problems (From: Moray Taylor <email@hidden>)

  • Prev by Date: Re: Which format for image file resources in Cocoa application?
  • Next by Date: Re: Which format for image file resources in Cocoa application?
  • Previous by thread: ATSUI text in an NSView problems
  • Next by thread: Re: ATSUI text in an NSView problems
  • Index(es):
    • Date
    • Thread