Mac OS X Reference Library Apple Developer Connection spyglass button

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:



Last updated: 2006-04-04

Did this document help you? Yes It's good, but... Not helpful...