This example demonstrates the use of NSOpenPanel dialog.
To build this project, open "Terminal", go to your project folder and type following lines:
mkdir build
cd build
cmake .. -G "Xcode"
open ./FolderBrowserDialog.xcodeproj
Select FolderBrowserDialog
project and type Cmd+R to build and run it.