I am slowly working my way through a cocoa tutorial, some questions I have dont appear answered in the book.
Just got to @property and @synthesize - I understand accessors and mutators and realise that this is what they are doing - but am I correct in thinking that if I use this method, all I will ever have is a very simple set and get mechanism?
If I wanted to add anything else to the getter and setter, ie a message logged to the console when a value is set, then I have to explicitly type out the old set and get methods.
There's no way to piggy back extra statements into the 'generated' methods is there?
Just got to @property and @synthesize - I understand accessors and mutators and realise that this is what they are doing - but am I correct in thinking that if I use this method, all I will ever have is a very simple set and get mechanism?
If I wanted to add anything else to the getter and setter, ie a message logged to the console when a value is set, then I have to explicitly type out the old set and get methods.
There's no way to piggy back extra statements into the 'generated' methods is there?