Deprecation Warning Fixes

This fixes deprecation warnings for `setScalesWhenResized` for 10.6 and `convertScreenToBase` for 10.7.