Re: Modal panel and -initialFirstResponder
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