On Tue, Aug 17, 2010 at 12:55 PM, vincent habchi <vi...@macports.org> 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 (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

Reply via email to