Mac OS AppKit文档翻译——NSWindow


NSWindow

The NSWindow class defines objects (known as windows) that manage and coordinate the windows an application displays on the screen.

NSWindow类通常用来定义一个窗口对象,控制并与应用内的窗口对象协作处理显示屏幕上的视图。


Overview

A single NSWindow object corresponds to at most one onscreen window. The two principal functions of a window are to provide an area in which views can be placed and to accept and distribute, to the appropriate views, events the user instigates through actions with the mouse and keyboard.

一个NSWindow对象最多对应屏幕上的一个窗口。窗口的两个基本功能,其一是为各种视图层提供了空间,便于将视图放在窗口里,其二是响应并分配用户通过使用鼠标和键盘在适当的视图层上激发的交互事件。


Note

Although the NSWindow class inherits the NSCoding protocol from NSResponder  the class does not support coding. Legacy support for archivers exists but its use is deprecated and may not work. Any attempt to archive or unarchive an NSWindow object using a keyed coding object raises an invalidArgumentException exception.

虽然NSWindow类继承自NSResponder,并遵守NSCoding协议,但是这个类并不支持编码。之前存在支持归档的情况,但是这种用法已经过时,可能已经没效了。任何尝试使用关键coding对象来归档或解档一个NSWindow对象都会抛出  NSInvalidArgumentException 异常。

上班之余,翻译技术文档之余,吃饭睡觉拉shi之余,我翻译的《明日此时》,出自美国大作家 @ 鲁伯特·考利之笔,另推荐他的另一本畅销作《火车上的女人》

你可能感兴趣的:(Mac OS AppKit文档翻译——NSWindow)