mac: Implement SetProgressBar API.