*implement  macosx window