• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSView clickable area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSView clickable area
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Webkit / Cocoa window flashing again...
  • Next by Date: Re: NSView clickable area
  • Previous by thread: Re: Webkit / Cocoa window flashing again...
  • Next by thread: Re: NSView clickable area
  • Index(es):
    • Date
    • Thread