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

Add support for visible parameter on mac.