Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Compatibility Issues

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:

addTrackingRect:owner:userData:assumeInside:

removeTrackingRect:

addCursorRect:cursor:

removeCursorRect:cursor:

discardCursorRects

resetCursorRects

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:

In addition, the following NSWindow cursor-related methods are deprecated, but maintained for compatibility:

discardCursorRects

invalidateCursorRectsForView:

resetCursorRects



< Previous PageNext Page > Hide TOC


Last updated: 2007-03-16




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice