• 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
makeFirstResponder doesn't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeFirstResponder doesn't


  • Subject: makeFirstResponder doesn't
  • From: Jason Harris <email@hidden>
  • Date: Sat, 22 Jun 2002 15:07:10 -0700

Hi List,

I'm running into a problem in which calling [[myView window]
makeFirstResponder: myView] doesn't work. The scenario is that I've got a
bunch of custom views in a view hierarchy. I can walk the hierarchy in gdb
and I get what I'd expect to see - that is, the views are in the right child
and parent arrangement.

As a response to a user action (inside of either hitTest or keyDown), I call
makeFirstResponder. When I do this, the current responder receives a
resignFirstResponder message and the new responder receives a
becomeFirstResponder message. They both respond with YES. There are no
other resign* or become* messages.

The next time through the event loop, my new first responder isn't , the
window is (that is, [myView window] is the first responder). There have
been no makeFirstResponder, resignFirstResponder or becomeFirstResponder
calls in the meantime (breakpoints set on all implementations in gdb).

I'm at a loss. Any ideas?

Jason
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: makeFirstResponder doesn't
      • From: Jason Harris <email@hidden>
  • Prev by Date: Re: PayPal
  • Next by Date: Re: QTMovie->PICT->NSImage
  • Previous by thread: Re: Document name changed notification?
  • Next by thread: Re: makeFirstResponder doesn't
  • Index(es):
    • Date
    • Thread