• 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: First responder status and field editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First responder status and field editor


  • Subject: Re: First responder status and field editor
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 17 Aug 2010 13:23:45 -0700

On Tue, Aug 17, 2010 at 12:55 PM, vincent habchi <email@hidden> wrote:
> just a tiny question: I have a NSTextField whose field editor is customized. When I click inside to begin typing text, to my surprise, its (that is, the NSTextField) -(BOOL)resignFirstResponder gets called, which is rather unexpected since the field is, on the contrary, acquiring focus. I suppose this is caused by the first responder status being handed over on the fly to the field editor, right? In particular, does it mean that the code I wanted to implement in the NSTextView -resignFirstResponder method should be transferred to the field editor same method?

Yes, this is how field editors work: they are regular text views that
are inserted into the view hierarchy and configured in such a way as
to appear in line with the control on whose behalf they're editing. So
you should expect that the text field will lose first responder status
when the field editor is made first responder, just like any other
view.

--Kyle Sluder
_______________________________________________

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

References: 
 >First responder status and field editor (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Losing my memory - a caching problem?
  • Next by Date: Re: Losing my memory - a caching problem?
  • Previous by thread: First responder status and field editor
  • Next by thread: stringByReplacingCharactersInRange leading to bus error
  • Index(es):
    • Date
    • Thread