上一页 1 2 3 4 5 6 7 ··· 34 下一页

2014年5月4日

摘要: UIKit是用来开发iOS的应用的,AppKit是用来开发Mac应用的,在使用过程中他们很相似,可是又有很多不同之处,通过对比分析它们的几个核心对象,可以避免混淆。UIKit和AppKit都有一个Application类,每个应用都只创建一个Application对象,分别是UIAplication... 阅读全文
posted @ 2014-05-04 12:38 做个不善的人 阅读(5598) 评论(0) 推荐(1)
 

2014年4月27日

摘要: UIViewController 在MVC模式中就是C。关于MVC,可以看 UIViewController 主要具有什么功能呢? View Management When you define a new subclass of UIViewController, you must specify the views to be managed by the controller. A typ... 阅读全文
posted @ 2014-04-27 08:28 做个不善的人 阅读(3447) 评论(0) 推荐(0)
 

2014年4月21日

摘要: 看这篇文章学习C++异常处理的基础知识。看完后,还不过瘾,为什么大家在C++代码中都不用Exception?为什么C++11会引入一些变化?为什么C++ exception handling需要unwind stack?为什么throw会被抛弃?接着看http://www.gotw.ca/publi... 阅读全文
posted @ 2014-04-21 02:42 做个不善的人 阅读(30669) 评论(1) 推荐(0)
 

2014年4月20日

摘要: Closure被翻译为闭包,C++11引入了Lambda表达式支持Closure,JavaScript支持Closure,Objective C支持Blocks,他们都是Closure,名字各有不同,可是Closure到底有什么用呢?为什么C++11要引入这个东西呢? 按照Wikipedia上的总结,他们都可以统统被叫做Anonymous Function(匿名函数),这样一说,可能很多人就变得没... 阅读全文
posted @ 2014-04-20 07:41 做个不善的人 阅读(241) 评论(0) 推荐(0)
 

2014年4月14日

摘要: 什么是id,与void *的区别id在Objective C中是一个类型,一个complier所认可的Objective C类型,跟void *是不一样的,比如一个 id userName, 和void *pUserName,[userName print] 是可以的,但[pUserName pri... 阅读全文
posted @ 2014-04-14 12:46 做个不善的人 阅读(4352) 评论(0) 推荐(0)
 

2014年3月19日

摘要: 以前也没研究过这些,很多时候也搞不太清楚他们之间的关系,今天把以前遇到的问题一一揭开.ZUnix Shell的一个程序compress基于LZC算法将文件压缩,typically,被压缩的文件后缀是.z。Most tar programs will pipe their data through compress when given the command line option "-Z".ZIPZIP是一种支持无损压缩的文件格式,A .ZIP file may contain one or more files or folders that may have been 阅读全文
posted @ 2014-03-19 02:44 做个不善的人 阅读(726) 评论(0) 推荐(0)
 

2013年12月28日

摘要: 先说通常意义上的typeset(排字、排版),然后再说NSTypesetter 和 NSATSTypesetter,最后是它们的区别。Typesetting is the composition of text by means of types.这里的type是什么意思呢?In typesetting by hand compositing, a sort or type is a piece of type representing a particular letter or symbol, cast from a matrix mould and assembled with othe 阅读全文
posted @ 2013-12-28 09:37 做个不善的人 阅读(597) 评论(0) 推荐(0)
 
摘要: Apple的Doc对这个类的描述是这样的:The NSTextContainer class defines a region where text is laid out. An NSLayoutManager uses NSTextContainer to determine where to break lines, lay out portions of text, and so on. NSTextContainer defines rectangular regions, but you can create subclasses that define regions of ot 阅读全文
posted @ 2013-12-28 03:19 做个不善的人 阅读(7194) 评论(0) 推荐(0)
 

2013年12月27日

摘要: An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string.这句话就是对这个类的一个最简明扼要的概括。NSAttributedString管理一个字符串,以及与该字符串中的单个字符或某些范围的字符串相关的属性。比如这个字符串“我爱北京天安门”,“我”跟其他字符的颜色不一 阅读全文
posted @ 2013-12-27 09:06 做个不善的人 阅读(23198) 评论(0) 推荐(3)
 

2013年12月26日

摘要: Glyph(字形)A glyph is an element of writing: an individual mark on a written medium that contributes to the meaning of what is written.glyph是一个独立的标记,用来表达一个它之所以被写出的意思。也就是写了表示一个意思,不写表示另外一个意思。For example, in most languages written in any variety of the Latin alphabet the dot on a lower-case "i" 阅读全文
posted @ 2013-12-26 12:03 做个不善的人 阅读(514) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 ··· 34 下一页