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

On Sat, 25 Apr 2009 at 17:26 AM, Bill Cheeseman <b...@cheeseman.name> 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 - b...@cheeseman.name
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to