Only first example works for CocoaDialog