macOS开发-NSView一.简介二.核心API3.简单示例
一.简介NSView用于在应用程序中渲染、打印以及处理事件的基础容器,多数功能由AppKit自动调用。NSView 继承自NSResponder@interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement