In Objective-C, a property can have the following attributes applied to it: atomic nonatomic assign retain copy The scenerio is that these attributes are applied to the properties for us but what happens if we want setting/getting a property's value to have a side-effect? In this article, I implement the different possible combinations of property attributes to show how we can have custom getters and setters in our .m files while still honouring the property attributes declared in our .h files. Non-atomi…
#properties
2 posts with this tag