Replace deprecated NSAlert methods