Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] NSStatusItemMBS sometimes unresponsive (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 11.0pr14
Next thread: [MBS] Good size for a badge in the icon of my app in the Dock and Application Switcher?


Re: [MBS] MBS Real Studio Audio Plugin crash   -   Garth Hjelte
  [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Christian Schmitz
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Tim Jones
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Tim Jones
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Christian Schmitz
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Christian Schmitz
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Christian Schmitz
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Dean Davis
   Re: [MBS] NSStatusItemMBS sometimes unresponsive   -   Christian Schmitz

[MBS] NSStatusItemMBS sometimes unresponsive
Date: 11.01.11 04:42 (Mon, 10 Jan 2011 22:42:21 -0500)
From: Dean Davis
I've created a NSStatusItemMBS for my app with some NSMenuItemsMBS to
make a simple menu to display infomation.
I used the code example provided with the plug-ins (version 10.3) so
I'm keeping references to the NSMenuMBS and all the NSMenuItemMBS
objects.

Also I have an Image and Text in my NSStatusItemMBS (.title and .image
are assigned)

I'm finding that when I click on the text of the statusitem many times
it is unresponsive and does not draw the menu or acknowledge the click
(statusitem in the menubar doesn't highlight).
But it appears that if I click on the Image it is responsive 100% of the time.

I can click in rapid succession on the title 10 or 15 times and
nothing but immediately click on the image and I get the menu.
Sometimes clicking on the title is normal as well.

Any thoughts?

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 02.03.11 16:24 (Wed, 2 Mar 2011 16:24:02 +0100)
From: Christian Schmitz

On 02.03.2011, at 16:08, Dean Davis wrote:

> Christian, if it works fine in a Cocoa build but not a Carbon build
> would that provide any clues or investigative paths to see if it is
> fixable in Carbon?

I tried several times. I copied for example the plugin code into a new Xcode project. Both Carbon and Cocoa applications. The same code works there without issue.

So I expect that REAL Studio's event handling is the problem, but I can't proof it.
(and I don't expect RS to change that)

Greetings
Christian

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 02.03.11 16:08 (Wed, 2 Mar 2011 10:08:47 -0500)
From: Dean Davis
I don't think it's a big enough issue that I can't wait for the Cocoa
stuff to become more stable.

Christian, if it works fine in a Cocoa build but not a Carbon build
would that provide any clues or investigative paths to see if it is
fixable in Carbon?

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 01.03.11 23:24 (Tue, 01 Mar 2011 15:24:12 -0700)
From: Tim Jones
On Mar 1, 2011, at 12:16 PM, Christian Schmitz wrote:

> On 01.03.2011, at 19:52, Dean Davis wrote:
>
>> Is there any hope the issue with the statusitem can be fixed so we
>> don't have to use the colored background workaround?
>
> I have no idea where the reason is and how to fix it.

It's a Carbon artifact - see my prior message about building as Cocoa. Things look all correct there.

Tim

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 01.03.11 23:23 (Tue, 01 Mar 2011 15:23:03 -0700)
From: Tim Jones
On Mar 1, 2011, at 11:52 AM, Dean Davis wrote:

> Is there any hope the issue with the statusitem can be fixed so we
> don't have to use the colored background workaround?

Hi Dean,

It looks like it is fixed - in Cocoa. I've just run a number of tests building as Cocoa and the background image color is not needed to get full menu area click recognition.

The only limiter in this is how much you trust the "beta" nature of the current Cocoa implementation in 2010r5.1 as to whether you want to release something built with it.

Tim

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 01.03.11 20:16 (Tue, 1 Mar 2011 20:16:07 +0100)
From: Christian Schmitz

On 01.03.2011, at 19:52, Dean Davis wrote:

> Is there any hope the issue with the statusitem can be fixed so we
> don't have to use the colored background workaround?

I have no idea where the reason is and how to fix it.

Greetings
Christian

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 01.03.11 19:52 (Tue, 1 Mar 2011 13:52:38 -0500)
From: Dean Davis
Is there any hope the issue with the statusitem can be fixed so we
don't have to use the colored background workaround?

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 19.01.11 11:55 (Wed, 19 Jan 2011 11:55:54 +0100)
From: Christian Schmitz

Am 19.01.2011 um 04:24 schrieb Dean Davis:

> ... for the "Title" part I don't see how to get my 22x22
> image back in the StatusItem with all the appropriate masks set
> correctly so that the image shows just as well as the text.
>
> Suggestions?

Well, sounds like you have trouble composing several pictures?

Greetings
Christian

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 19.01.11 04:24 (Tue, 18 Jan 2011 22:24:17 -0500)
From: Dean Davis
Just started playing with code workaround but got stumped.

In my NSStatusItem I would normally have an NSStatusItem.Image (22x22
with mask) and an NSStatusItem.Title assigned in my NSStatusItem.
But since your work around uses NSStatusItem.Image (and
.AlternateImage) for the "Title" part I don't see how to get my 22x22
image back in the StatusItem with all the appropriate masks set
correctly so that the image shows just as well as the text.

Suggestions?

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 11.01.11 18:04 (Tue, 11 Jan 2011 12:04:22 -0500)
From: Dean Davis
I went and checked and I did a bad search (kicking self).
I see the threads now and the potential workarounds.

Thanks again.

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 11.01.11 18:02 (Tue, 11 Jan 2011 18:02:44 +0100)
From: Christian Schmitz

Am 11.01.2011 um 18:01 schrieb Dean Davis:

> I did look thought the archive but I didn't notice any thread that
> mentioned this, sorry.

No problem.

Greetings
Christian

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 11.01.11 18:01 (Tue, 11 Jan 2011 12:01:36 -0500)
From: Dean Davis
I did look thought the archive but I didn't notice any thread that
mentioned this, sorry.

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

Re: [MBS] NSStatusItemMBS sometimes unresponsive
Date: 11.01.11 11:36 (Tue, 11 Jan 2011 11:36:15 +0100)
From: Christian Schmitz

Am 11.01.2011 um 04:42 schrieb Dean Davis:

> But it appears that if I click on the Image it is responsive 100% of the time.

Looking on the archives, you see that this is a known problem for years.

Maybe you watch this video?

http://www.mbsplugins.com/NSStatusItemFix.shtml

Greetings
Christian