• 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
Grabbing Focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Grabbing Focus
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Setting the color of NSCells within a NSMatrix
  • Next by Date: Cocoa/XCode question
  • Previous by thread: Setting the color of NSCells within a NSMatrix
  • Next by thread: Re: Grabbing Focus
  • Index(es):
    • Date
    • Thread