Re: Clear NSSearchField
Re: Clear NSSearchField
- Subject: Re: Clear NSSearchField
- From: Randy Widell <email@hidden>
- Date: Sat, 18 Oct 2014 17:13:59 -0700
Yeah, that doesn’t work either. I’m clearing the search field in response to a change in selection in an outline view. Which means the search field is already not the first responder. So, setting the first responder to nil just makes the outline view give up first responder without affecting the search field.
> On Oct 18, 2014, at 15:19, Kyle Sluder <email@hidden> wrote:
>
> On Sat, Oct 18, 2014, at 04:51 PM, Randy Widell wrote:
>> That works somewhat, but not really. Half the time the search field
>> remains the first responder as if the call to set the outline view as the
>> first responder never happened.
>
> Have you tried forcing the text field to give up first responder via
> [textField.window makeFirstResponder:nil] ?
>
> --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
_______________________________________________
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