Naming Functions

Objective-C allows you to express behavior through functions as well as methods. You should use functions rather than, say, class methods, when the underlying object is always a singleton or when you are dealing with obviously functional subsystems.

Functions have some general naming rules that you should follow:

NSHighlightRect
NSDeallocateObject

Functions that query properties have a further set of naming rules:



© 2003, 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-04-04)