mac window implementation