NSRulerView and zooming/magnification

Where from and how does an NSRulerView get its magnification from? I am not using the automatic magnification by NSScrollView but using my own mechanism. How do I relay the zoom factor to NSRulerView?

NSRulerView and zooming/magnification
 
 
Q