Chapter 15. Events and Cursors

IN THIS CHAPTER

NSView is a subclass of NSResponder, and plays an important role in event processing. The role of views in the responder chain was briefly introduced in Chapter 8, “The Application Kit Framework Overview.” This chapter expands that introduction and provides the details needed to effectively subclass NSView for event handling.

Events are handled the same way regardless of the graphics or drawing API used. In addition to handling events, views play a role in cursor management. As a cursor moves in and out of a view, the cursor can be changed to provide feedback to users. This chapter discusses event handling and cursor management in subclasses ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.