Re: Setting focus to text field in drawer
Re: Setting focus to text field in drawer
- Subject: Re: Setting focus to text field in drawer
- From: Seth Willits <email@hidden>
- Date: Sun, 10 Aug 2003 13:20:36 -0700
On Sunday, August 10, 2003, at 09:33 AM, Arthur Clemens wrote:
I searched the archives and docs, but cannot find an answer to my
problem:
I have a main window with a NSTextView, and an attached NSDrawer with a
search text field in it.
From the text view, I want to set focus to the search field using a
keyboard shortcut.
My search text field does become first responder, but no focus ring is
drawn and typing does not work; the field editor apparently does not
become first responder. The text view in the main window fires a
resignFirstResponder:.
It all works if I click into the search text field, but I cannot make
it work programmatically. Obviously I am missing something.
What about making the drawer the key window?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"Standing up for what you believe in is never a waste of time."
-- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
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.