Grabbing Focus
Grabbing Focus
- Subject: Grabbing Focus
- From: David Henderson <email@hidden>
- Date: Mon, 8 Aug 2005 10:29:20 -0700 (PDT)
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
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
_______________________________________________
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