Re: Strange NSStatusItem Bug
Re: Strange NSStatusItem Bug
- Subject: Re: Strange NSStatusItem Bug
- From: "Crichlow, Eric" <email@hidden>
- Date: Tue, 2 Dec 2003 17:43:37 -0500
On Dec 1, 2003, at 8:44 PM, Eric Schlegel wrote:
>
> I created a NSStatusItem with a menu. I added LSUIElement=1 to
>
> my info.plist. When I first click the status item while still
>
> in Xcode, it works great. But, when I switch to any other app
>
> the menu won't appear again! It will sometimes come back, but
>
> I can't find a pattern to this.
>
>
This is a known bug which we are hoping to fix in an upcoming
>
software update.
Ok,
I have seen the same problem as David. Glad to hear it's not a bug in my
code that I need to track down. :)
But I have another problem, and just maybe you can shed some light on
that, too.
My application interfaces to tablets (and interactive whiteboards,)
takes the raw input from those devices (through HID or Bluetooth packets),
converts the device-relevant coordinates to screen coordinates and manually
controls the system mouse based on those coordinates.
My application is controlled through an NSStatusItem menu.
In the previous version of the app, I controlled the system mouse by
generating mouse events using CGPostMouseEvent(). That version has no
problems in 10.2 or 10.3.
However, in order to make our devices utilize Inkwell, I switched to
controlling the mouse using IOHIDPostEvent(), so that I could generate
tablet events.
This works fine in 10.2.
However, with 10.3, when I'm using one of our devices to control the
mouse and I click on my NSStatusItem, my menu pops down, and then my
application freezes. It's as if the run loop blocks until I use the real
mouse to dismiss the menu, then my application processing returns to normal.
Other than this, my switch to IOHIDPostEvent() and tablet events seems
to work perfectly.
Do you have any insight as to what my NSStatusItem problem might be?
...Thanx...
...Eric Crichlow...
....GTCO CalComp...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.