On Feb 24, 2009, at 6:08 PM, Eric Gorr wrote:
*** [[[self view] window] makeFirstResponder:[self view]];
Pressing return will allow the editing session to end, but pressing
the tab key will not
Looks like controlTextDidEndEditing: is too deep within the text
field's event handling to muck with the first responder. Delaying the
call to makeFirstResponder: seems to work:
[[[self view] window]
performSelector:@selector(makeFirstResponder:) withObject:nil
afterDelay:0.0];
(Note this passes nil to makeFirstResponder: rather than the view.) I
don't know if this is foolproof -- for example, I haven't tried it
with different accessibility settings. And note that if you normally
have a tab loop this will defeat the tab loop.
--Andy
aglee
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com