09 2017 档案
摘要:1. beginSheetModalForWindow:self.view.window completionHandler:^(NSInteger result), 创建窗口显示在操作界面的下面 2. beginWithCompletionHandler:^(NSInteger result),创
阅读全文
摘要:1. NSOpenPanel的beginWithCompletionHandler:^(NSInteger result),打开文件对话框时,对话框出现在屏幕的中央。 2. NSOpenPanel的beginSheetModalForWindow:self.view.window completio
阅读全文
摘要:传送门:https://my.oschina.net/u/2340880/blog/886861 摘要: NSTableView是AppKit中的表视图控件,是macOS开发中非常重要的一种视图控件。熟练应用NSTableView控件对mac软件开发十分重要。 NSTableView的应用详解 一、
阅读全文
摘要:1. 环境 Mac OSX 10.10.5 + Xcode 7.2.1 2. 创建工程 3. 控件设置 a. 拖动一个TableView控件和一个Button控件到View Controller. b. 设置TableView为view-base形式,并设置显示为两列,网格设为实线。 c. 设置Ta
阅读全文
摘要:1. .h ->@property int x,y; .m->不使用 @synthesize,生成的setter和getter是_x, _y. 使用@syntherisze x,y; 生成的setter和getter都是x, y; 2. .h -> 多参数函数: -(void) setX: (int
阅读全文
摘要:传送门: http://michael-roshen.iteye.com/blog/1328142 1. 环境: win7 + git bash 2. 起因 运行: 时出现:warning: LF will be replaced by CRLF xxxxx 3. 原因分析 CRLF -- Carr
阅读全文