• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tunneling mouse events through windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Tunneling mouse events through windows? (From: Dinu Gherman <email@hidden>)

  • Prev by Date: [OT] Re: Mailing list: General options
  • Next by Date: writing to a textview
  • Previous by thread: Re: Tunneling mouse events through windows?
  • Next by thread: StatusItem position
  • Index(es):
    • Date
    • Thread