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之余,我翻译的《明日此时》,出自美国大作家 @ 鲁伯特·考利之笔,另推荐他的另一本畅销作《火车上的女人》

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • “唯品会三期工程的13个仓库及配套设施,基建已经完工,正在内部装修安装设备,预计6月投入运营。”在鄂州“葛店中国中...
    柯丽娟阅读 719评论 0 0
  • 怀着好奇的心理和对未知的探索,我翻开了《麦田里的守望者》。 这是一部关于情绪与矛盾在文学领域里的最高杰作,以愤怒与...
    泥路芬芳阅读 300评论 1 2
  • 我要成为一个雷打不动的人: 早晨六点半起床、晚上十一点半熄灯睡觉。 日常作息安排大致如下: 6:30 起床,看一看...
    云时之间阅读 537评论 4 6
  • 你不回我信息,那我就删了你 你的微信或者朋友圈里一定有这种人,某天他突然空了就来跟你说话(其中还不排除他找你点赞投...
    董海兰呀阅读 616评论 0 0