FROM : Lon Giese
DATE : Fri Jun 02 20:25:01 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> <email_removed>
>
> This email sent to <email_removed>
>
DATE : Fri Jun 02 20:25:01 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> <email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| ChrisB | Jun 2, 17:55 | |
| Lon Giese | Jun 2, 20:25 | |
| Ricky Sharp | Jun 3, 05:48 | |
| ChrisB | Jun 3, 16:51 |






Cocoa mail archive

