On Feb 1, 2012, at 6:59 AM, Marshall Houskeeper wrote:

> I was confused because the NSWindows  method ignoresMouseEvents returns false 
> after I initialize  the window.  So the calling of the setIgnoresMouseEvents 
> must have some other side effect.

Yes, it seems that there are actually three states:

* -setIgnoresMouseEvents: has never been called, so the window's transparency 
governs whether it responds to mouse events.

* The last call to -setIgnoresMouseEvents: specified YES, meaning mouse events 
are ignored

* The last call to -setIgnoresMouseEvents: specified NO, meaning mouse events 
are received even for a transparent window.

In the older AppKit release notes 
<https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html>,
 it says:

> We fixed -setIgnoresMouseEvents: so that it works more reliably for opaque 
> windows that want to be transparent to mouse events, and also works for 
> transparent windows that want to receive mouse events. In Jaguar, this API 
> only somewhat worked for ignoring events, and did not work at all for 
> receiving mouse events in transparent windows. This fix applies only to 
> applications built on Panther or later.




> Maybe the documentation needs to be  updated to be more clear on the side 
> effect.

You should file a bug against the documentation about that.

Regards,
Ken


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to