• 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
Re: Modal panel and -initialFirstResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal panel and -initialFirstResponder


  • Subject: Re: Modal panel and -initialFirstResponder
  • From: Vincent Habchi <email@hidden>
  • Date: Wed, 20 Jul 2011 11:21:32 +0200

Hi Quincey,

> What does "shows (modally)" mean?

It's a modal panel, displayed though a -[NSApp runModalForWindow:].

> The initial first responder is the view that's *going to be* the first responder, when it's window becomes key. Panels don't become key at the same times as regular windows, so it's possible you need to call 'makeKeyAndOrderFront:' on the panel after showing it. Also, panels can be configured to become key "only when necessary", meaning you need to click on something that accepts first responder status in order to make the window key. You should check the setting of that property, too.

In fact, I found a way out by synthesizing a fake textField click event in the -windowDidBecomeKey: delegate method.

But I wonder if there is anything more simple.

Cheers and thanks!
Vincent_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Modal panel and -initialFirstResponder (From: Vincent <email@hidden>)
 >Re: Modal panel and -initialFirstResponder (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Best way to do static overlay over scrolling content?
  • Next by Date: Automatic warnings for NSLocalizedString?
  • Previous by thread: Re: Modal panel and -initialFirstResponder
  • Next by thread: Best way to do static overlay over scrolling content?
  • Index(es):
    • Date
    • Thread