• 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
How to make a transparent NSView answer events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make a transparent NSView answer events


  • Subject: How to make a transparent NSView answer events
  • From: Giovanni Donelli <email@hidden>
  • Date: Sat, 10 Apr 2004 21:18:13 +0200

Hello Gurus!
I have NSImageView. For some reasons I subclassed it and now it works more or less like a button answering to mouseDown events.

Now the problem is that my NSImageView shows an image with an alpha channel which has only 10% opaque area. Because the opaque area is pretty small and narrow, it not easy to click on my fake button because I don't get the mouse down when the user clicks on a transparent point, even this point is inside the NSImageView frame.

Anyone knows how to make a NSView to answer events in all the area of his frame despite this area is transparent?

Thank you for your help... and Happy Easter to you and your families!

Giovanni Donelli
_______________________________________________
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.


  • Follow-Ups:
    • Re: How to make a transparent NSView answer events
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Dragging Views and Cursor
  • Next by Date: Re: NSURLConnection oddity
  • Previous by thread: Re: How to find what kind of Objects are contained in NSArray
  • Next by thread: Re: How to make a transparent NSView answer events
  • Index(es):
    • Date
    • Thread