6 [window setContentAspectRatio:NSMakeSize(width, height)] 更多信息:Apple's documentation,NSWindow class reference 来源 2009-05-02 21:23:26 hbw