MacOSX sample