small medium large xlarge

Generic-user-small
25 May 2009, 23:08
A Khirbat (1 post)

About lines 8 and 10 in @initWithFrame:@ on page 36,

moverFrame.origin.x = NSMidX([self bounds]) - (NSWidth(moverFrame) / 2.0f);
moverFrame.origin.y = ...

Am I right in thinking that these lines have no effect on @moverFrame.origin@ in this particular example? If not, what am I missing? I stuck NSLog(@"%@", NSStringFromRect(moverFrame)) before and after these lines but saw no difference.

Thanks for any insight!

You must be logged in to comment