Forcing the creation of window device
Forcing the creation of window device
- Subject: Forcing the creation of window device
- From: Paul Kim <email@hidden>
- Date: Fri, 22 Jun 2007 11:09:44 -0400
Hi,
I have an NSWindow and in the case that it was created deferred, I
was wondering what the best way to force creation of the window
device without bringing it on screen. This is so I can grab the
windows pixels using NSCopyBits (and I want the titlebar so any of
the view caching techniques are not sufficient here). Note that
everything works fine if the window is not deferred and not one shot
(the one shot aspect is easy to deal with since you can set it).
One thing I did try to force the window device was to do orderBack:
followed by orderOut:. At least on my machines, I do not see any sort
of flicker of the window appearing on screen. Nonetheless, I feel
that this may not be ideal and was wondering if anyone had any better
suggestions.
Thanks,
Paul Kim
------------------------------------
Chief Noodler - Noodlesoft
email@hidden
http://www.noodlesoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden