This is a bare bones example of how to embed the CocoaHTTPServer in a desktop application. The document root of the server is set to the ~/Sites folder.
Open the Xcode project, and build and go.
On the Xcode console you'll see a message saying: "Started HTTP server on port 59123"
Now open your browser and type in the URL: http://localhost:59123
(Replace 59123 with whatever port the server is actually running on.)