Deprecated Functionality

When perusing the Cocoa reference and Application Kit headers, you are bound to discover some classes and methods not discussed in this chapter. Most of them have not been covered because they have become obsolete. With so many obsolete classes, protocols, and methods, it is useful to at least list them here so that they don’t confuse new developers. It is important to know what can safely be ignored!

For example, prior to Aqua, each NSMenu had an associated NSMenuView object to lay out and draw the menu. Each NSMenuItem had an NSMenuItemCell object to render the menu item. The present version of Mac OS X uses Carbon functions to render menus, so Cocoa no longer uses the NSMenuView and NSMenuItemCell classes.

Although ...

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.