iOS Reference Library Apple Developer
Search

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: 2010-05-05

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