Add support for visible parameter on mac.
Merge pull request #4 from glennw/backport-mac-visible

Backport 'Add support for visible parameter on mac.'