Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] NSSearchField Issue (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Searchfield not showing up in toolbar
Next thread: [MBS] User Resizable View


Re: [MBS] PortAudio bug?   -   Garth Hjelte
  [MBS] NSSearchField Issue   -   Beatrix Willius
   Re: [MBS] NSSearchField Issue   -   Beatrix Willius
   Re: [MBS] NSSearchField Issue   -   Christian Schmitz

[MBS] NSSearchField Issue
Date: 07.04.13 07:49 (Sun, 7 Apr 2013 08:49:06 +0200)
From: Beatrix Willius
Hi,

I'm having an issue with a NSSearchField.

Because I only want to start searching after the user did a return I can't use the Action event. But when I use the event TextShouldEndEditing I can't open the search menu anymore and the close icon for removing the text also doesn't work.

Feature or bug?

Using RealStudio 2011r4, latest MBS, Mac OS 10.8, Cocoa

And a small change request for the documentation: could you add that the state property of a menu item is the equivalent of checked. It took me a while to find this out.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] NSSearchField Issue
Date: 07.04.13 10:31 (Sun, 7 Apr 2013 11:31:54 +0200)
From: Beatrix Willius
Thanks! Got it.

I just needed to return true from the second event TextShouldEndEditing, too.

On 07.04.2013, at 11:25, Christian Schmitz <<email address removed>> wrote:

> Well, the action event is the first place to look.
> For the textShould events, you need to return true to keep the field working.
>
> The key events in a CustomNSSearchFieldMBS don't work for return key here.
> So not sure how to catch it beside a NSEventMonitorMBS.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] NSSearchField Issue
Date: 07.04.13 10:25 (Sun, 7 Apr 2013 11:25:08 +0200)
From: Christian Schmitz

Am 07.04.2013 um 08:49 schrieb Beatrix Willius <<email address removed>>:

> Hi,
>
> I'm having an issue with a NSSearchField.
>
> Because I only want to start searching after the user did a return I can't use the Action event. But when I use the event TextShouldEndEditing I can't open the search menu anymore and the close icon for removing the text also doesn't work.
>
> Feature or bug?

Well, the action event is the first place to look.
For the textShould events, you need to return true to keep the field working.

The key events in a CustomNSSearchFieldMBS don't work for return key here.
So not sure how to catch it beside a NSEventMonitorMBS.

> And a small change request for the documentation: could you add that the state property of a menu item is the equivalent of checked. It took me a while to find this out.

Ok.

Greetings
Christian