NSControl继承
来源:互联网 发布:淘宝活动氛围图是什么 编辑:程序博客网 时间:2024/05/12 11:43
To better understand NSControl, you should become acquainted with its ancestors: NSControl inherits from NSView, which inherits from NSResponder, which inherits from NSObject. Each member of the family tree adds some capabilities (Figure 5.3).
Figure 5.3. Inheritance Diagram for NSControl
At the top of the class hierachy is NSObject. All the classes inherit from NSObject, and this is where they get the basic methods:retain, release, dealloc, and init. NSResponder is a subclass of NSObject. Responders have the ability to handle events with such methods as mouseDown: and keyDown:. NSView is a subclass of NSResponder. NSView has a place on a window, where it draws itself. You can create subclasses of NSView to display graphs and allow the user to drag and drop data. NSControl inherits from NSView and adds the target and the action.
- NSControl继承
- NSControl的继承图
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- 继承
- HT图形组件设计之道(二)
- dojo处理删除操作报错
- IT软件项目管理实战教程-(启动、计划、实施、控制和收尾)
- ubuntu12.04 安装和卸载mysql
- Maximum Depth of Binary Tree
- NSControl继承
- innerHTML用法
- 开源夏令营第六周--要求调整及近期安排
- Ubuntu 10.04 下 Samba 安装配置
- System类对IO的支持
- 2014多校7(1006)hdu4940(有上下界的最大流)
- jersey上传图片
- 功有所在 責有所歸
- Android之ORM,IOC,HTTP工具框架