1、TextView放在一个NSScrollView中,作为documentView存在。 @IBOutlet weak var txtScrollView: NSScrollView! 2、在TextView中写入字符串 self.txtScrollView.documentView?.setSt ...
分类:
编程语言 时间:
2016-04-25 10:30:33
阅读次数:
252
i'm sorry, i forgot this article where i found. that it is referenced. 以前也研究过Eclipse里Web Project引用Java Project的问题,没有解决,特地再深入研究了一下。 思路及实践如下: 1.Elcipse里 ...
分类:
系统相关 时间:
2016-04-25 10:24:10
阅读次数:
2666
摘自:http://sushener.spaces.live.com/blog/cns!BB54050A5CFAFCDD!435.entry PHP5一个很让人恼火的一点就是BC(向后兼容)不是很理想。比如说,很多的PHP4的脚本都可能会出现下面的错误提示:Notice: Only variable ...
分类:
Web程序 时间:
2016-04-24 14:16:39
阅读次数:
385
ARC的判断准则:只要没有强指针指向对象,就会释放对象 指针分2种 1强指针:默认情况下,所有的指针都是强指针 __strong 2弱指针:__weak __weak Person* p=[Person new]错误写法 用弱指针对象会被释放 属于 编译特性 strong :强指针相当于原来reta ...
分类:
其他好文 时间:
2016-04-24 00:37:12
阅读次数:
146
官方文档地址:https://developer.apple.com/library/mac/documentation/Xcode/Reference/xcode_markup_formatting_ref/ComentBlock.html 找这个找得好苦啊。一言不合先上个图 使用的是Markup ...
分类:
编程语言 时间:
2016-04-23 13:08:23
阅读次数:
336
1. 简述OC中内存管理机制
oc中的内存管理机制是自动引用计数,它分为两种方式:MRC和ARC,MRC是手动管理内存,ARC是系统自动管理内存;他的原则是谁开辟谁释放,有开辟就要有销毁
2. readwrite,readonly,assign,retain,copy,nonatomic 、atomic、strong、weak属性的作用?
Readwrite:读写特性,可读可写(是默...
分类:
移动开发 时间:
2016-04-22 20:56:20
阅读次数:
266
1.简述OC中内存管理机制
OC的内存管理机制是自动引用技术,内存管理的原则是谁开辟谁释放,分为ARC和MRC,MRC的话就是需要我们程序员手动管理内存,ARC不需要我们手动管理内存,系统会自行管理。
2.readwrite,readonly,assign,retain,copy,nonatomic 、atomic、strong、weak属性的作用?
readWrite读写特性, 可读可写...
分类:
移动开发 时间:
2016-04-22 20:54:31
阅读次数:
226
Here is the original guid:
Postfix+Dovecot+MySQL搭建邮件服务器
The reference above was written for Ubuntu, I found some changes must be done to apply the techniques with my CentOS scenario.
Another h...
分类:
数据库 时间:
2016-04-22 19:45:31
阅读次数:
327
创建表: create table Ceshi ( Uid varchar(50) primary key, Pwd varchar(50), Name varchar(50), Nation varchar(50), foreign key(Nation) reference Nation(Cod ...
分类:
数据库 时间:
2016-04-22 16:28:14
阅读次数:
211
1. 最常见情况 2. Reference to Const 3. Pointers and Const 4. Const的不同Level 5. const与Class 5.1 const member function - 函数的末尾有const 5.2 返回值使用const Reference ... ...
分类:
编程语言 时间:
2016-04-22 09:25:51
阅读次数:
174