NSTrackingArea sends -cursorUpdate: to view instead of its owner
| Originator: | andrew | ||
| Number: | rdar://20989845 | Date Originated: | 2015-05-16 |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.10.3 |
| Classification: | Bug | Reproducible: | Always |
Summary: In the header for NSTrackingArea, NSTrackingCursorUpdate is documented as follows: "owner receives cursorUpdate when mouse enters area. Cursor is set appropriately when mouse exits area" Unfortunately, it's actually sent to the view associated with the NSTrackingArea. -mouseEntered: and -mouseExited: work correctly (see attached project) Steps to Reproduce: Open the project and run. - Move the cursor over the red rectangle - Inspect console logs See attached xcode project. Expected Results: -cursorUpdate: should called on the owner object (TrackingAreaOwner) Actual Results: -cursorUpdate: called on CursorView instead (see attached project) Version: OS X 10.10.3 (14D136) Notes: This problem is important to address because <redacted>. Configuration: Attachments: 'CursorUpdateBug.zip' was successfully uploaded. https://www.dropbox.com/s/c5nk6rcmpglfoyf/CursorUpdateBug.zip
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!