Re: Grabbing Focus
Re: Grabbing Focus
- Subject: Re: Grabbing Focus
- From: Charilaos Skiadas <email@hidden>
- Date: Mon, 8 Aug 2005 13:06:03 -0500
On Aug 8, 2005, at 12:29 PM, David Henderson wrote:
I have a simple app that is based off of the excellent
tutorial at cocoadevcentral for making a "full screen
app". I have posted a link to it below, but in
summary, he makes an NSWindow (a pane) to fill and
block the screen, and on that is painted a Full-Sized
custom view (subclass of NSView).
I'm trying to make a simple full-screen game.
I can achieve input focus on my program, but only
after clicking in the window (which is taking up the
full screen anyway). I'd like to programatically
force focus (at least keyboard focus) to that window
during, or immmedialy after it's instantiated. Any
makeKeyAndOrderFront is what you are looking for I think.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSWindow.html#//apple_ref/doc/uid/
20000013-BABBDIFB
help would be greatly appreciated. Also, if if there
is an easy way to make the mouse pointer dis-appear
that would be helpful to know too, since it's only a
distraction in this particular app.
Thanks,
Dave
http://www.cocoadevcentral.com/articles/000028.php
Haris
_______________________________________________
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