Re: setting focus on NSSearchField in status bar menu item
Re: setting focus on NSSearchField in status bar menu item
- Subject: Re: setting focus on NSSearchField in status bar menu item
- From: vincent habchi <email@hidden>
- Date: Thu, 8 Jul 2010 22:10:23 +0200
Le 8 juil. 2010 à 21:26, Nava Carmon a écrit :
> Can somebody answer this please?
>
>> I added a custom view with a NSSearchField as a first menu item to a status bar menu. When I run the application from debugger I can click and write in the NSSearchField. After I go to another application, make it front and click again on my status menu, the NSSearchField shows, but it's disabled and can't get focus. The question is how to cause the NSSearchField to get focus each time, the user clicks to show the menu?
I cannot precisely figure out what you've tried to do, but, as I said in another thread, popping up a menu will make lose focus to any other view, so I am unsure you can add a text editing view to it.
Vincent
_______________________________________________
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