On 24 Apr, 2013, at 21:46 , Antonio Nunes <[email protected]> wrote:

> I have an NSSearchField, and a menu bar submenu with the standard Find items. 
> When the search field receives some input, it performs its action and an 
> array controller is filled with search results. Now, while the search field 
> is the first responder, none of the Find items are enabled, so it is 
> impossible to issue, say a Find Next command. The Find functions perform fine 
> when just about any other item in the document window is first responder. I 
> find that surprising, but, more importantly, I cannot find a way to get the 
> Find functions to work, while the search command has focus. What am I missing?

I added a search field to a small test project, to see if it works correctly in 
a less complicated setup, but to no avail. The Find menu items are still 
disabled. Some more googling (previous queries did not yield any relevant 
info), showed me that this issue has bitten others before, but no solutions 
appear to have been put forward.

I've checked the responder chain, and tried to catch calls to validateMenuItem 
and validateUserInterfaceItem:, to see if I can find out the point at which 
these items are disabled. But the break points don't even trigger. When I check 
the window for its first responder, when the search field is receiving input, 
it returns the document window, not the search field. The document window 
though, has its own implementation of validateMenuItem:, but that is never 
called.

How can I find out where the validation for performFindPanelAction: fails?

-António
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to