Use NSAlert instead of the deprecated NSBeginAlertSheet