When to access properties with ‘self’

you almost always want to access variables using the synthesized setters/getters, even if you aren’t doing anything special with them at the moment.

if as your application develops, you find that you need to be doing further validation/formatting of variables, then you can just implement the required setter/getter method, and if you have used the synthesised methods this code will get called.

this is generally a good habit to get into.

Leave a Comment