Beginning with Mac OS X v10.5, the NSTrackingArea class and the related NSView methods addTrackingArea:, removeTrackingArea:, updateTrackingAreas, and trackingAreas replace the following methods of NSView, which are deprecated but supported for compatibility:
The NSTrackingRectTag type, returned by the addTrackingRect:owner:userData:assumeInside: and passed into the removeTrackingRect: methods, is also deprecated. Internally this type is treated the same as NSTrackingArea *.
The underlying implementation for the deprecated methods is based on NSTrackingArea, resulting in the following implications:
An invocation of the addTrackingRect:owner:userData:assumeInside: method creates an NSTrackingArea object with the options NSTrackingMouseEnteredAndExited and NSTrackingActiveAlways set. It also includes the NSTrackingAssumeInside option if the last parameter of the function is YES. After creating the object, it adds it to the receiver (addTrackingArea:) and returns it as a tag.
The resetCursorRects method is invoked after updateTrackingAreas.
In addition, the following NSWindow cursor-related methods are deprecated, but maintained for compatibility:
Last updated: 2007-03-16