Re: Not even a portion of a window?
Re: Not even a portion of a window?
- Subject: Re: Not even a portion of a window?
- From: j o a r <email@hidden>
- Date: Fri, 15 Jul 2005 19:26:58 +0200
On 15 jul 2005, at 19.20, Lorenzo wrote:
why can't I get an image of my window?
I get an empty image all the time. What did I miss?
<snip>
[[aWindow contentView] drawRect:imageRect];
Do you have a custom content view subclass that draws something
interesting? If not, I would assume that it doesn't draw anything per
default, and that would be why your image ends up being empty.
Perhaps you'd rather look at this method:
-[NSWindow dataWithPDFInsideRect:]
imageData = [image TIFFRepresentation];
I think that you should move this out of the focus-locked area.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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