NSSound doesn't work in a Unix tool...

I have a Cocoa Unix tool that needs to play sound but I hear nothing…
Sound is played asynchronously: your tool probably reaches its return point before sound has got opportunity to play. One way to solve the problem is to have a run loop waiting for the sound to finish. Calling sleep may also work but prevent your tool to do useful things while waiting for the sound to finish playing.