Sometimes I do see
self->someData = d;
in Objective-C code. Can someone explain when that is used?
Sometimes I do see
self->someData = d;
in Objective-C code. Can someone explain when that is used?
This syntax can be used to directly access public instance variables of an object. (It does not work for private variables.) You probably should create a property and use that instead, or use key value coding.