• 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: Clicking through a NSView with CALayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clicking through a NSView with CALayers


  • Subject: Re: Clicking through a NSView with CALayers
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 26 Apr 2009 06:08:35 -0400

On Apr 25, 2009, at 10:08 PM, Rowan Nairn wrote:

On Sat, 25 Apr 2009 at 17:26 AM, Bill Cheeseman <email@hidden> wrote:
I have an identical setup on an application I'm currently working on,
and clickthrough works just fine for me.

Really? I hope we're talking about the same thing here. I just created a new blank Cocoa Application, and changed the window to a custom class with this initialization code:

Making the window invisible isn't relevant -- visual transparency and clickthrough are two different qualities. To make a window transparent to mouse events, you have to call -[NSWindow setIgnoresMouseEvents:YES]. Note that the entire window will be clickthrough, not just transparent areas. Clickthrough works even on windows that are not invisible. It's normally used to make overlay windows.


--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com

_______________________________________________

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: Clicking through a NSView with CALayers
      • From: Rowan Nairn <email@hidden>
References: 
 >Clicking through a NSView with CALayers (From: Rowan Nairn <email@hidden>)
 >Re: Clicking through a NSView with CALayers (From: Rowan Nairn <email@hidden>)
 >Re: Clicking through a NSView with CALayers (From: Rowan Nairn <email@hidden>)

  • Prev by Date: Re: Coca equivalent to NMInstall?
  • Next by Date: NSString may not respond to a method in documentation?
  • Previous by thread: Re: Clicking through a NSView with CALayers
  • Next by thread: Re: Clicking through a NSView with CALayers
  • Index(es):
    • Date
    • Thread