Skip to content

Instantly share code, notes, and snippets.

@plukevdh
Created July 20, 2009 23:50
Show Gist options
  • Save plukevdh/150994 to your computer and use it in GitHub Desktop.
Save plukevdh/150994 to your computer and use it in GitHub Desktop.
person = Person.new
person.name
person.setName(name)
person.setFirstName(first, lastName:last)
Person *person = [Person new]; // create an instance of the Person class.
[person name]; // send selector 'name'.
[person setName:name]; // send selector 'setName:', passing the 'name' variable as an argument.
[person setFirstName:first lastName:last]; // send selector 'setFirstName:lastName:',
// passing both 'first' and 'last' variables as arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment