use correct property-setting call for OSX