cocoa: automatically select application style