[quote=“Carignane”]So this is a token like %f in an NSLog statement?
And it’s standing in for the 2.0 to size the height and width on each line?
Just making sure that I understand.
I couldn’t find clarification from Stack Overflow or the XCode organizer.
*= is an operator that is a shorthand way of saying 'multiply the value in this variable by some number and store the result back in the same variable’
So, instead of writing
x = x * 2;
we can write
x *= 2;
There are similar shortcuts for other operations too:
x = x + 1; can be written x++;
x = x + 5; can be written x += 5;
What ibex10 is referring to is the *= operator being a token from the parser’s point of view - when your code is compiled it is parsed and split into tokens that the compiler understands. Putting a space between the * and the = causes the parser to fail to recognize it.