NSView clickable area
NSView clickable area
- Subject: NSView clickable area
- From: email@hidden (Christian Schmitz)
- Date: Sun, 18 Nov 2007 07:30:11 +0100
Hi,
my NSView in the Statusitem bar does not get mouse events on areas which
are transparent. Users are complaining about this.
If you want to know how the bahavior is, just thing about if you click
on the menubar clock and the menu there would only open if you hit the
black text. If you hit the space between the letters or inside the
letters, you won't open the menu.
How do I make a NSView to handle events on the whole size?
And how does the system know where I don't have it transparent?
Seems like if I draw it all in red using fillrect, I get all events I
expect. But if there is just a small icon, the space around is ignored.
Somehow the system seems to thing it needs to watch on the alpha mask.
Gruß
Christian
--
Over 900 classes with 17000 functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v7.6.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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