• 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: 2nd fullscreen window and keyboard input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2nd fullscreen window and keyboard input


  • Subject: Re: 2nd fullscreen window and keyboard input
  • From: Lon Giese <email@hidden>
  • Date: Fri, 2 Jun 2006 11:25:01 -0700

I remember this problem I had it awhile back. I'm working form memory here.

I'm pretty sure it is due to the screen layers and the full screen layer is second from the top layer. The very top layer is the shield layer. I wrote this about three years ago and my memory is faded a little. It says it is to stop the shield from consuming mouse events, might it might work for keyboard events as well...

Hope this helps.
Lon


/////////////////////////////////////////////////////////////////////// //////////////
// makeKeyAndOrderFront
// Called by app controller when the mode changes to full screen
/////////////////////////////////////////////////////////////////////// //////////////
-(void) makeKeyAndOrderFront:sender
{
int32_t shieldLevel;


[self reshape]; // Adjust content size in case display resolution changed

shieldLevel = CGShieldingWindowLevel(); // The level of invisible mouse event eating window
[super setLevel:shieldLevel]; // This gets us mouse events


[super makeKeyAndOrderFront:sender]; // Moves current window to front and gives keyboard focus
}





WooHoo the ultimate Mac App for 'The Sims 2' power users. http://www.modthesims2.com/showthread.php?p=1239629 On Jun 2, 2006, at 8: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.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________
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


References: 
 >2nd fullscreen window and keyboard input (From: ChrisB <email@hidden>)

  • Prev by Date: Re: Drawing views
  • Next by Date: Re: Newbie error
  • Previous by thread: 2nd fullscreen window and keyboard input
  • Next by thread: Re: 2nd fullscreen window and keyboard input
  • Index(es):
    • Date
    • Thread