• 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
Re: Transparant button click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparant button click


  • Subject: Re: Transparant button click
  • From: Andreas Mayer <email@hidden>
  • Date: Sat, 28 Aug 2010 15:54:05 +0200

Am 28.08.2010 um 10:30 schrieb Graham Cox:

> This NSImage method is the only one built-in that offers this kind of hit-test functionality (10.6 only). You could build your button around it. But for earlier OS versions you have to do the hit-test yourself. This involves testing the point against the alpha channel value of the image at that point.

You can find sample code here:

http://www.harmless.de/cocoa-code.php

Look for the AMShapedButton project.

It's rather old but I just confirmed that it still builds. :)


Andreas_______________________________________________

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

References: 
 >Transparant button click (From: Erik Colson <email@hidden>)
 >Re: Transparant button click (From: Graham Cox <email@hidden>)

  • Prev by Date: Translation.
  • Next by Date: NSString / NSURL
  • Previous by thread: Re: Transparant button click
  • Next by thread: Re: Transparant button click
  • Index(es):
    • Date
    • Thread