MonobjcMonobjc Documented Class Library
NSTrackingAreaOptions Enumeration
NamespacesMonobjc.AppKitNSTrackingAreaOptions

The following constants specify the type of the tracking area defined by an NSTrackingArea object. They request the type of messages the owning object should receive.

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
[FlagsAttribute]
public enum NSTrackingAreaOptions
<FlagsAttribute> _
Public Enumeration NSTrackingAreaOptions
[FlagsAttribute]
public enum class NSTrackingAreaOptions
Members
MemberDescription
NSTrackingMouseEnteredAndExited

The owner of the tracking area receives mouseEntered: when the mouse cursor enters the area and mouseExited: events when the mouse leaves the area.

Available in Mac OS X v10.5 and later.


NSTrackingMouseMoved

The owner of the tracking area receives mouseMoved: messages while the mouse cursor is within the area.

Available in Mac OS X v10.5 and later.


NSTrackingCursorUpdate

The owner of the tracking area receives cursorUpdate: messages when the mouse cursor enters the area; when the mouse leaves the area, the cursor is appropriately reset.

Available in Mac OS X v10.5 and later.


NSTrackingActiveWhenFirstResponder

The owner receives messages when the view is the first responder.

Available in Mac OS X v10.5 and later.


NSTrackingActiveInKeyWindow

The owner receives messages when the view in in the key window.

Available in Mac OS X v10.5 and later.


NSTrackingActiveInActiveApp

The owner receives messages when the application is active.

Available in Mac OS X v10.5 and later.


NSTrackingActiveAlways

The owner receives messages regardless of first-responder status, window status, or application status. The cursorUpdate: message is not sent when the NSTrackingCursorUpdate option is specified along with this constant.

Available in Mac OS X v10.5 and later.


NSTrackingAssumeInside

The first event is generated when the cursor leaves the tracking area, regardless if the cursor is inside the area when the NSTrackingArea is added to a view. If this option is not specified, the first event is generated when the cursor leaves the tracking area if the cursor is initially inside the area, or when the cursor enters the area if the cursor is initially outside it. Generally, you do not want to request this behavior.

Available in Mac OS X v10.5 and later.


NSTrackingInVisibleRect

Mouse tracking occurs only in the visible rectangle of the view�in other words, that region of the tracking rectangle that is unobscured. Otherwise, the entire tracking area is active regardless of overlapping views. The NSTrackingArea object is automatically synchronized with changes in the view�s visible area (visibleRect) and the value returned from rect is ignored.

Available in Mac OS X v10.5 and later.


NSTrackingEnabledDuringMouseDrag

The owner receives NSMouseEntered events when the mouse cursor is dragged into the tracking area. If this option is not specified, the owner receives mouse-entered events when the mouse is moved (no buttons pressed) into the tracking area and on NSLeftMouseUp events after a mouse drag.

Available in Mac OS X v10.5 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)