![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
macOS基础篇
txfsnow_1979
这个作者很懒,什么都没留下…
展开
-
MacOS-01-窗体
//// AppDelegate.swift// Window//// Created by iDevFans on 16/6/24.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoaimport AppKit@NSApplicationMainclass AppDe...转载 2019-06-24 11:33:02 · 412 阅读 · 0 评论 -
macOS-04.06-NSComboBox
//// ViewController.swift// NSComboBox//// Created by iDevFans on 16/6/29.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoaclass ViewController: NSViewControlle...转载 2019-06-24 14:29:39 · 201 阅读 · 0 评论 -
macOS-04.05-Label
//// AppDelegate.swift// Label//// Created by iDevFans on 16/6/28.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate: NSObjec...转载 2019-06-24 14:18:36 · 154 阅读 · 0 评论 -
macOS-04.04-NSSearchField
//// AppDelegate.swift// NSSearchField//// Created by iDevFans on 16/6/28.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate:...转载 2019-06-24 14:12:23 · 203 阅读 · 0 评论 -
macOS-04.03-NSTextView
//// AppDelegate.swift// NSTextView//// Created by iDevFans on 16/6/28.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate: NS...转载 2019-06-24 14:06:43 · 325 阅读 · 0 评论 -
macOS-04.02-NSTextField(文本框)
//// AppDelegate.swift// NSTextField//// Created by iDevFans on 16/6/28.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate: N...转载 2019-06-24 13:57:08 · 228 阅读 · 0 评论 -
macOS-04.01-ResponderChain(响应顺序)
//// AppDelegate.swift// ResponderChain//// Created by iDevFans on 16/6/27.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate...转载 2019-06-24 13:58:29 · 107 阅读 · 0 评论 -
MacOS-03-ScrollView
//// AppDelegate.swift// ScrollView//// Created by iDevFans on 16/6/25.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//import Cocoa@NSApplicationMainclass AppDelegate: NS...转载 2019-06-24 13:58:40 · 194 阅读 · 0 评论 -
MacOS-02-窗体自定义视图并保存为图片
//// AppDelegate.swift// View//// Created by iDevFans on 16/6/25.// Copyright © 2016年 http://www.macdev.io. All rights reserved.//AppDelegate.swiftimport Cocoa@NSApplicationMainclass App...转载 2019-06-24 13:58:06 · 253 阅读 · 0 评论 -
macOS-04.07-Controls
NSAlert 控件let alert = NSAlert()//增加一个按钮alert.addButton(withTitle: “Ok”)//提示的标题alert.messageText = “Alert”//提示的详细内容alert.informativeText = "password length must be more than 6 "//设置告警风格alert.a...转载 2019-06-24 14:51:54 · 100 阅读 · 0 评论