• 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: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting focus to text field in drawer


  • Subject: Re: Setting focus to text field in drawer
  • From: Arthur Clemens <email@hidden>
  • Date: Sun, 10 Aug 2003 23:19:09 +0200

On zondag, augustus 10, 2003, at 10:20 PM, Seth Willits wrote:

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?

How?

Arthur Clemens
_______________________________________________
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: Setting focus to text field in drawer
      • From: Seth Willits <email@hidden>
References: 
 >Re: Setting focus to text field in drawer (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: ImageInTableview
  • Next by Date: Re: Ridiculously Enormous PDFs and Printing
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread