Replaced deprecated NSRunAlertPanel with NSAlert.