Below is my code:
[[[[webView mainFrame] frameView] documentView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)]; [[[[webView mainFrame] frameView] documentView
Why do you need to access the documentView?
[[[webView mainFrame] frameView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)];
works as well.