Changing position of the NSScrollView by code


I’ve got the DrawingFun app up and running. I am trying to get the NSScrollView window to move and resize programatically, by changing variables.

I’ve been trying for about 3 hours with no luck. Could someone help point me to where / how I could do this?