OS X Core Controls Tutorial: Part 2/2学习笔记
来源:互联网 发布:淘宝直通车在哪里找图 编辑:程序博客网 时间:2024/04/30 06:15
learn from: OS X Core Controls Tutorial: Part 2/2
OverView
In this part of tutorial,we” finish the application,and learn how to use the follwing controls:
- sliders
- Date Pickers
- Radio Buttons
- Check Boxes
- Image Views
NSSliders
Interface Builder has an object in the Object Library for sliders:
Two common tasts:
- getting or setting current value;
- getting and setting the high and low limits of the slider’s range.
@property int intValue;// ps-from: NSControl@property NSInteger integerValue;@property float floatValue;@property double doubleValue;// ps-to:NSControl@property double minValue;@property double maxValue;
set Continuous state:
demo
NSDatePicker
self.datePicker.date = [NSDate date];
NSMatrix
Radio Button: only a single button,within the same group,can be selected at one time.NSMatrix allows to group radio buttons in rows and columns.
In the Object Library: No Radio Group.
Check Boxes
check boxes are in fact the same as push buttons
self.yellCheck.state = NSOffState;
Image Views
Image Well
0 0
- OS X Core Controls Tutorial: Part 2/2学习笔记
- OS X Core Controls Tutorial: Part 1/2 学习笔记
- OS X View Controllers Tutorial学习笔记
- Windows and Window Controllers in OS X Tutorial学习笔记
- GObject Tutorial Part 2
- TheWavelet Tutorial Part 2
- TheWavelet Tutorial Part 2
- AForge学习笔记(2):AForge.Controls
- AForge学习笔记(2):AForge.Controls
- TRULY Understanding Dynamic Controls (Part 2)
- TRULY Understanding Dynamic Controls (Part 2)
- OS X 10.10 Yosemite Web Development Environment: Part 2
- Python Tutorial 学习笔记2
- Tutorial - Deferred Rendering (Part 2)
- PyQt5-Beginner-tutorial-part 2
- .NET Core多平台开发体验[2]- Mac OS X
- .NET Core多平台开发体验[2]- Mac OS X
- Mac OS X Programming读书笔记5 - Controls
- 在centos下搭建php环境
- matplotlib学习1
- Qt自定义委托在QTableView中绘制控件、图片、文字
- HashMap死循环
- DevExpress GridControl 控件中GridView 加组,加行
- OS X Core Controls Tutorial: Part 2/2学习笔记
- 知道创宇的一个rtcp分析,加上外面找到的一个tcp udp端口转发的
- 为什么现在多数软件都默认选择安装目录为user下的AppData而非Progamfiles?
- android MediaPlayer surface分析
- 北航面试之英语部分
- LLDB调试命令(三)thread return 命令 帮你排除项目中的疑难杂症
- javaScript事件捕获和冒泡
- java常用几种枚举类型
- Kernel启动流程源码解析 1 head.S