summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-10 21:04:02 -0400
committerPietro Gagliardi <[email protected]>2014-05-10 21:04:02 -0400
commitd0ac56c0fcbf12e69cb364058ed92254cef1d575 (patch)
treeba47d6bbdcb4e42757c34378a2be9a3642be0d99
parentcc01981999df5f60bac36adf5039c752e10384e7 (diff)
Added some more exposition to a comment in bleh_darwin.m regarding tracking area options.
-rw-r--r--bleh_darwin.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index bc44f0f..201750f 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -373,7 +373,7 @@ id makeTrackingArea(id area)
trackingArea = objc_msgSend(c_NSTrackingArea, s_alloc);
trackingArea = (*objc_msgSend_initTrackingArea)(trackingArea, s_initTrackingArea,
(*objc_msgSend_stret_rect)(area, s_bounds), /* initWithRect: */
- /* this bit mask (except for NSTrackingInVisibleRect, which was added later) comes from https://github.com/andlabs/misctestprogs/blob/master/cocoaviewmousetest.m (and I wrote this bit mask on 25 april 2014) and yes I know it includes enter/exit even though we don't watch those events; it probably won't really matter anyway but if it does I can change it easily */
+ /* this bit mask (except for NSTrackingInVisibleRect, which was added later to prevent events from being triggered outside the visible area of the Area) comes from https://github.com/andlabs/misctestprogs/blob/master/cocoaviewmousetest.m (and I wrote this bit mask on 25 april 2014) and yes I know it includes enter/exit even though we don't watch those events; it probably won't really matter anyway but if it does I can change it easily */
(NSTrackingAreaOptions) (NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved | NSTrackingActiveAlways | NSTrackingEnabledDuringMouseDrag | NSTrackingInVisibleRect), /* options: */
area, /* owner: */
nil); /* userData: */