Context-Sensitive Help (NSHelpManager)

A quick perusal of the Cocoa reference material, or the API header files, uncovers a final Help related API, the NSHelpManager class. From the class’s interface, it might seem that the class manages contextual help.

Historically, under Openstep, the user could hold down the Help key (or the F1 key or the Ctrl-Alt keys) to change the cursor into a question mark. The user could then click a user interface object to open a small help window briefly describing the purpose of that control. The window would disappear when the user subsequently clicked anywhere in the application.

Although the API remains, this functionality has been removed in Mac OS X. In the current implementation of Cocoa, the NSHelpManager ...

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.