iOS and OSX wrappers for UIAlertView/NSAlert using blocks