clean up deprecated API (beginSheetForDirectory... method of NSSavePanel class replace)