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

Setting focus to text field in drawer


  • Subject: Setting focus to text field in drawer
  • From: Arthur Clemens <email@hidden>
  • Date: Sun, 10 Aug 2003 17:50:46 +0200

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.

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.

  • Prev by Date: Documents & Controllers
  • Next by Date: Font "chiseled in" look on metal?
  • 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