Get Updates By E-mail 

Article Written By:
Johann Dowa

Tutorial: Beginners Objective-C Understand The Self Keyword And Properties

  •  
  •  
  •  
  •  
  •  

Objective-C has many nuances that can take some time to grasp that can be difficult to understand, as they are rarely seen in other languages.

Some of these nuances involve the self keyword.  When first starting out it may be difficult to figure out exactly where to use it.  Another nuance involves the “dot syntax” for properties that was added in Objective-C 2.0, and when programmers switch between this and the pre-2.0 syntax it can get very confusing.

Keith Harrison has created a very good tutorial explaining many of the confusing situations that can arise involving the self keyword, and properties and Objective-C 2.0.

You can find the tutorial on his blog here:
Understanding Your (Objective-C) Self

A very good read if you are starting out, and getting confused.

[via @rwenderlich]


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments