
OS X录
文章平均质量分 64
Jolie_Yang
所贵乎枯淡者,谓其外枯中膏,似淡而实美
展开
-
OS X拖拉文件获取文件路径
参考资料:苹果文档 2rd,August,2016介绍Cocoa提供了在开发的应用与其它应用间实现拖拽的相关API,分别在NSDragging.h,NSDraggingItem.h,NSDraggingSession.h中。NSDragging声明了NSDraggingSource,NSDraggingDestination,NSDraggingInfo协议@protocol NSDragging原创 2016-08-02 17:51:19 · 2171 阅读 · 0 评论 -
OS X之NSPasteboard粘贴板
初始化方法其中generalPasteboard可在程序之间共享粘贴版的数据。Demo原创 2016-06-27 19:09:11 · 1361 阅读 · 0 评论 -
Mac--NSIndexSet学习笔记from Apple Documentation
26th,May,2016 介绍 NSIndexSet继承于NSObject。 是一个不可变的存放unique unsigned integers。 初始化方式 - init - initWithIndexesInRange - initWithIndexSet + indexSet // 创建一个空的indexSet 查找indexSet中的是否包含某一index - con原创 2016-05-26 18:46:23 · 502 阅读 · 0 评论 -
OS X View Controllers Tutorial学习笔记
15th,June,2016 learn from: OS X View Controllers TutorialIntroducing View Controllers A view controller is responsible for managing a view and its subviews. ViewController 负责管理view和它的subviews。NSVie原创 2016-06-17 15:19:15 · 549 阅读 · 0 评论 -
Windows and Window Controllers in OS X Tutorial学习笔记
learn from:Windows and Window Controllers in OS X TutorialOverview window is the isntance of the NSWindow class, and the associated controller object is an instance of the NSWindowController class.In原创 2016-06-06 16:28:39 · 774 阅读 · 0 评论 -
OS X Core Controls Tutorial: Part 2/2学习笔记
learn from: OS X Core Controls Tutorial: Part 2/2OverViewIn this part of tutorial,we” finish the application,and learn how to use the follwing controls: sliders Date Pickers Radio Buttons Check Boxes I原创 2016-06-02 17:30:22 · 458 阅读 · 0 评论 -
OS X Core Controls Tutorial: Part 1/2 学习笔记
Introduceone big difference with Mac Development are there are diffferent controls. have a foundamental understanding of the following controls: Labels and TextField, Popup Buttons, Text Views, Slide原创 2016-06-02 16:16:49 · 948 阅读 · 0 评论 -
OS X禁用NSTextView的引号替换
4th,August,2016问题描述在NSTextView中输入json的双引号时,输入法为英文,但显示的是中文的引号。而且在输入过程中能感觉到英文引号替换成中文引号。顺便试了下NSTextField,不存在该问题。再试了下单引号也存在该问题,而!,@,#等字符不存在该问题。 猜测:是系统对引号做了特殊处理,在输入引号的时候将输入法更改为中文输入法吗? 于是按着这个思路去查看了NSTextVi原创 2016-08-04 17:34:19 · 1631 阅读 · 0 评论 -
iOS&OS X -- Alert 提示框实现
31st,May,2016iOS&OS X – Alert 提示框实现iOS实现UIAlert Important: UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, inst原创 2016-05-31 17:47:18 · 1430 阅读 · 0 评论