realm/realm-cocoa — pull request #719 by tgoyne (2014-07-31 00:20:39+00:00)
Title: Move the default realm path on OS X to Application Support

And when not running in a sandbox, use the bundle identifier as a subdirectory name so that each application has its own default realm file rather than sharing them, falling back to the executable name if it's not running in a bundle.

@alazier @jpsim