PDA

View Full Version : understanding setFrame




sgthree
Apr 30, 2012, 02:50 PM
if anyone is familiar with Aaron Hillegass's Cocoa Programming for MacOS X, could they please explain the effect of the call [self setFrame:newFrame] in knowsPageRange: in the example on printing.

I can't see what it achieves. I have adapted the code to print a multipage report, and the setFrame call seems to be superfluous when creating a view for printing. Or am I missing something?