In Lesson 2, in the Movie_Player.m file I tried using the dot syntax on this
Instead of :
[movie setGrossSales: salesNumber];
I tried :
movie.setGrossSales = salesNumber;
I get the error:
“error: request for member ‘setGrossSales’ in something not a structure or a union.”
I obviously am doing something wrong and am misunderstanding where I can use the dot syntax.
The line under that, I have
salesNumber.release; and this does not generate an error
movie.play; and movie.release; both work fine as well.
Can you speak to my misuse of the dot syntax?
Thank you, Linda