Notes on Objective-C Method Signatures
I’m still not finding the Cocoa Touch language ‘natural’ so I decided to make a few notes and make sone examples to cement my understating.
defines a method initWithInt that returns a general object (an id) and takes one integer argument. Objective-C only requires a type in a signature to be explicit when the type is not id; this signature is equivalent:
Class Methods are declared by +
Instance Methods are declared by a preceding –
(see p.36 Introduction to The Objective-C 2.0 Programming Language )