add max os x window, not complete.