User Tools

Site Tools


ios-labs-s14:basics-methods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ios-labs-s14:basics-methods [2014/02/17 11:27]
mbarboi
ios-labs-s14:basics-methods [2014/02/26 13:02]
mbarboi
Line 2: Line 2:
 “Method”,​ “message”,​ and “function” all (sort of) refer to the same thing in Objective-C. “Method”,​ “message”,​ and “function” all (sort of) refer to the same thing in Objective-C.
  
-A method is a section of code that we can call from elsewhere in our code.+A method is a section of code that we can execute (callfrom elsewhere in our code.
  
 Components to methods: Components to methods:
Line 31: Line 31:
  
 ====Invocation=== ====Invocation===
-**Invocation**- the act of running the code contained within a method. ​Also known as calling the method ​or sending ​message.+**Invocation**- the act of running the code contained within a method. ​method ​is invoked on target, where the target is the object that owns the method.
  
 Consists of two parts Consists of two parts
ios-labs-s14/basics-methods.txt · Last modified: 2014/02/26 13:02 by mbarboi