Re: Losing some event
On Jun 27, 2008, at 1:37 PM, Laurent Cerveau wrote: Hi I am experiencing with Core Animation applications in kiosk mode and starts from the MenuView sample code I found somewhere on Apple web site (it displays a Quartz Composer composition in the background with a few CALayer that acts as button). In order to go full screen I have been going around the list archive, avoided enterFullScreen, and went with what seemed to have most sense that is : can you reproduce this with that example? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Losing some event
That was it! Thanks laurent On Jun 27, 2008, at 8:33 PM, Michael Ash wrote: On Fri, Jun 27, 2008 at 1:37 PM, Laurent Cerveau <[EMAIL PROTECTED]> wrote: Hi I am experiencing with Core Animation applications in kiosk mode and starts from the MenuView sample code I found somewhere on Apple web site (it displays a Quartz Composer composition in the background with a few CALayer that acts as button). In order to go full screen I have been going around the list archive, avoided enterFullScreen, and went with what seemed to have most sense that is : - create a window that covers the screen - move the content view of the window I use in IB to this one - use the SetSystemUIMode API to hide menu bar and dock - make sure the new window is properly the one getting events with makeKeyAndOrderFront - I also make sure I make the view ist the firstResponder of the window. However I do not get any more any keyDown, moveUp mouseDown .and ended with a beep. I have put a breakpoint in NSBeep but the backtrace is too short to reallly help #0 0x96c50b20 in NSBeep () #1 0x96a878db in -[NSApplication sendEvent:] () #2 0x969e4e27 in -[NSApplication run] () #3 0x969b2030 in NSApplicationMain () What is the best way to track such thing? Create an NSWindow subclass for your fullscreen window and override -canBecomeKeyWindow to return YES. By default, borderles windows cannot become key, and thus don't receive key events. Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/lcerveau%40mac.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Losing some event
On Fri, Jun 27, 2008 at 1:37 PM, Laurent Cerveau <[EMAIL PROTECTED]> wrote: > Hi > > I am experiencing with Core Animation applications in kiosk mode and starts > from the MenuView sample code I found somewhere on Apple web site (it > displays a Quartz Composer composition in the background with a few CALayer > that acts as button). In order to go full screen I have been going around > the list archive, avoided enterFullScreen, and went with what seemed to have > most sense that is : > - create a window that covers the screen > - move the content view of the window I use in IB to this one > - use the SetSystemUIMode API to hide menu bar and dock > - make sure the new window is properly the one getting events with > makeKeyAndOrderFront > - I also make sure I make the view ist the firstResponder of the window. > > However I do not get any more any keyDown, moveUp mouseDown .and ended with > a beep. I have put a breakpoint in NSBeep but the backtrace is too short to > reallly help > #0 0x96c50b20 in NSBeep () > #1 0x96a878db in -[NSApplication sendEvent:] () > #2 0x969e4e27 in -[NSApplication run] () > #3 0x969b2030 in NSApplicationMain () > > What is the best way to track such thing? Create an NSWindow subclass for your fullscreen window and override -canBecomeKeyWindow to return YES. By default, borderles windows cannot become key, and thus don't receive key events. Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Losing some event
On Jun 27, 2008, at 10:37 AM, Laurent Cerveau wrote: - I also make sure I make the view ist the firstResponder of the window. Sorry, I missed the last line of your email. Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Losing some event
On Jun 27, 2008, at 10:37 AM, Laurent Cerveau wrote: Hi I am experiencing with Core Animation applications in kiosk mode and starts from the MenuView sample code I found somewhere on Apple web site (it displays a Quartz Composer composition in the background with a few CALayer that acts as button). In order to go full screen I have been going around the list archive, avoided enterFullScreen, and went with what seemed to have most sense that is : - create a window that covers the screen - move the content view of the window I use in IB to this one - use the SetSystemUIMode API to hide menu bar and dock - make sure the new window is properly the one getting events with makeKeyAndOrderFront - I also make sure I make the view ist the firstResponder of the window. However I do not get any more any keyDown, moveUp mouseDown The window itself is probably not going to respond to key and mouse events. It the custom view that is supposed to accept these events, implement them, and then make sure that view can become the firstResponder. You might want to set it as the window's initialFirstResponder so that it will accept events on startup. If you don't know what that means, you should probably read this: http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/Introduction/chapter_1_section_1.html Omar Qazi Hello, Galaxy! 1.310.294.1593 smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Losing some event
Hi I am experiencing with Core Animation applications in kiosk mode and starts from the MenuView sample code I found somewhere on Apple web site (it displays a Quartz Composer composition in the background with a few CALayer that acts as button). In order to go full screen I have been going around the list archive, avoided enterFullScreen, and went with what seemed to have most sense that is : - create a window that covers the screen - move the content view of the window I use in IB to this one - use the SetSystemUIMode API to hide menu bar and dock - make sure the new window is properly the one getting events with makeKeyAndOrderFront - I also make sure I make the view ist the firstResponder of the window. However I do not get any more any keyDown, moveUp mouseDown .and ended with a beep. I have put a breakpoint in NSBeep but the backtrace is too short to reallly help #0 0x96c50b20 in NSBeep () #1 0x96a878db in -[NSApplication sendEvent:] () #2 0x969e4e27 in -[NSApplication run] () #3 0x969b2030 in NSApplicationMain () What is the best way to track such thing? Thanks laurent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]