Hi,
In chapter 7, the Synthesize and Multiple Arguments to a Method was introduced. It is my understanding that when use @property and @synthesize, you no longer have to create the setters and getter methods. I'm also guessing that this is thrown out the window when you are sending multiple arguments to a method. Am I correct about this?
Thanks,
Ron
This is my understanding.
A "property" is always a single value. Numerator, Denominator, Length, Width, Height... you get the idea.
So @synthesize will only set/get that single property. Makes sense. It saves a lot of work from creating setters/getters that only modify that one variable.
If you want to create a method that needs to pass 2 values, you can't synthesize this. You'd have to create your own custom method for it, with the multiple parameters/arguments explicitly defined.