• 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
Forcing the creation of window device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: connecting to an application from a web browser
  • Next by Date: Re: connecting to an application from a web browser
  • Previous by thread: Re: KVC and arrays
  • Next by thread: how do we play back keynote presentations in our apps?
  • Index(es):
    • Date
    • Thread