Chapter 5. Cocoa Conventions

IN THIS CHAPTER

Several conventions are used throughout the Cocoa frameworks. Awareness of the conventions greatly enhances the readability of code and documentation that references the frameworks. Conventions exist within most software environments. The conventions soon become second nature to programmers. Because of consistency with which the conventions are applied within the Cocoa frameworks, programmers can often guess the name of a class or method without needing the documentation.

These conventions are not part of the Objective-C language. Some of the conventions, such as variable naming, were originally arbitrary, but have become ...

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.