Re: 2nd fullscreen window and keyboard input
Re: 2nd fullscreen window and keyboard input
- Subject: Re: 2nd fullscreen window and keyboard input
- From: Ricky Sharp <email@hidden>
- Date: Fri, 2 Jun 2006 22:48:41 -0500
On Jun 2, 2006, at 10:55 AM, ChrisB wrote:
I used the "How to Make a Full Screen App" example at http://
cocoadevcentral.com/articles/000028.php to facilitate the
fullscreen layout of my application. I did subclass NSWindow as
suggested in the example to get keyboard input working. No problem.
I now have the need to temporarily bring up a second full screen
window over the first one. I need to get keyboard input to work on
this second window to allow the user to enter data in the WebView
it displays. I had no trouble using the same example code to bring
up this second window over the first . I used makeKeyAndOrderFront
on both the new NSWindow, and the IBOutlet to the panel in the nib
just like I did with the first main window. I also tried orderBack
on the mainWindow, but keyboard input seems to only be going to the
main window behind my overlay window. I can't seem to get it
figured out.
Before you use that sample, be aware of the numerous issues that can
arise when using CGDisplayCapture and then wanting to present normal
UI elements.
Definitely search the archives of the quartz-dev list for the "Alerts
above a shielding window" thread from July 2004. An Apple engineer
outlines the pitfalls.
What is the main reason for you using CGDisplayCapture? If all
you're using that for is to create a "blanking window", you'll be
better served by just creating a full-screen borderless window. You
can then set other windows as child windows to that blanking window
(and will thus preserve proper z-order). Finally, check out
SetSystemUIMode to set behaviors for the menu bar and/or Dock.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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