The things I found you have to do to get this working are, for your
subclass of NSWindow are:
[self setIgnoresMouseEvents:NO];
[self setBackgroundColor:[NSColor clearColor]];
[self setOpaque:NO];
and also override
-(BOOL) canBecomeKeyWindow
to return YES
Cheers,
Brett
On 15/06/2008, at 6:05 AM, John Joyce wrote:
I'm toying with using a transparent content view of an NSWindow.
Of course, when you get the background totally transparent, you
click in the rect, it clicks through to activate whatever is behind
the window. Does anybody know a way to have that much transparency
and not click through?
I'm sure it's possible to render a background image that is whatever
is behind the window, but that might eat up more processing than
would be practical.
(yes, I have gone over the sample code, RoundTransparentWindow )
_______________________________________________
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/brett
%40process.com.au
This email sent to [EMAIL PROTECTED]
_______________________________________________
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 [EMAIL PROTECTED]