Re: Tunneling mouse events through windows?
Re: Tunneling mouse events through windows?
- Subject: Re: Tunneling mouse events through windows?
- From: Andreas Mayer <email@hidden>
- Date: Thu, 20 Nov 2003 17:20:37 +0100
Am 20.11.2003 um 15:31 schrieb Dinu Gherman:
Mouse events to any Finder object
always go to Nirvana.
systemKnowsSetIgnoresMouseEvents = [mainWindow
respondsToSelector:@selector(setIgnoresMouseEvents:)];
- (void)setClickThrough:(BOOL)clickThrough
{
if (systemKnowsSetIgnoresMouseEvents) {
/* carbon */
void *ref = [mainWindow windowRef];
if (clickThrough)
ChangeWindowAttributes(ref, AM_kWindowIgnoreClicksAttribute,
kWindowNoAttributes);
else
ChangeWindowAttributes(ref, kWindowNoAttributes,
AM_kWindowIgnoreClicksAttribute);
/* cocoa */
[mainWindow setIgnoresMouseEvents:clickThrough];
}
}
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.