FROM : Brian Nenninger
DATE : Fri Dec 13 12:54:17 2002
Thank you very much, that works perfectly. It seems like
-setIgnoresMouseEvents: should handle this automatically, I'll file a
bug report.
Brian
On Friday, December 13, 2002, at 02:05 PM,
<email_removed> wrote:
> setIgnoresMouseEvents: does work for Cocoa applications only!
>
> You need to use Carbon to change the behaviour for Carbon apps (i.e.
> Finder). Like so:
>
> - (void)setClickThrough:(BOOL)clickThrough
> {
> /* carbon */
> void *ref = [aWindow windowRef];
> if (clickThrough)
> ChangeWindowAttributes(ref, kWindowIgnoreClicksAttribute,
> kWindowNoAttributes);
> else
> ChangeWindowAttributes(ref, kWindowNoAttributes,
> kWindowIgnoreClicksAttribute);
> /* cocoa */
> [aWindow setIgnoresMouseEvents:clickThrough];
> }
>
> And don't forget to use a borderless window.
DATE : Fri Dec 13 12:54:17 2002
Thank you very much, that works perfectly. It seems like
-setIgnoresMouseEvents: should handle this automatically, I'll file a
bug report.
Brian
On Friday, December 13, 2002, at 02:05 PM,
<email_removed> wrote:
> setIgnoresMouseEvents: does work for Cocoa applications only!
>
> You need to use Carbon to change the behaviour for Carbon apps (i.e.
> Finder). Like so:
>
> - (void)setClickThrough:(BOOL)clickThrough
> {
> /* carbon */
> void *ref = [aWindow windowRef];
> if (clickThrough)
> ChangeWindowAttributes(ref, kWindowIgnoreClicksAttribute,
> kWindowNoAttributes);
> else
> ChangeWindowAttributes(ref, kWindowNoAttributes,
> kWindowIgnoreClicksAttribute);
> /* cocoa */
> [aWindow setIgnoresMouseEvents:clickThrough];
> }
>
> And don't forget to use a borderless window.






Cocoa mail archive

