Re: Problems when putting a window between desktop and desktop icons
Re: Problems when putting a window between desktop and desktop icons
- Subject: Re: Problems when putting a window between desktop and desktop icons
- From: Andreas Mayer <email@hidden>
- Date: Fri, 24 Oct 2008 01:15:46 +0200
Am 23.10.2008 um 19:48 Uhr schrieb Markus Amalthea Magnuson:
Any other suggestions are welcome.
I did not see any reply to Charles' suggestion:
Am 21.10.2008 um 23:09 Uhr schrieb Charles Steinman:
Does [window setIgnoresMouseEvents:YES] work?
In case that does *not* work, you may need to additionally tell Carbon
that you want the window to ignore mouse events:
- (void)setClickThrough:(BOOL)clickThrough
{
/* carbon */
void *ref = [window windowRef];
if (clickThrough) {
ChangeWindowAttributes(ref, kWindowIgnoreClicksAttribute,
kWindowNoAttributes);
} else {
ChangeWindowAttributes(ref, kWindowNoAttributes,
kWindowIgnoreClicksAttribute);
}
/* cocoa */
[window setIgnoresMouseEvents:clickThrough];
}
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