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

2013年12月26日

摘要: Graphics ContextsGraphics contexts are a fundamental part of the drawing infrastructure in Cocoa applications. As the name suggests, a graphics context provides the context for subsequent drawing operations. It identifies the current drawing destination (screen, printer, file, and so on), the coordi 阅读全文
posted @ 2013-12-26 08:39 做个不善的人 阅读(953) 评论(0) 推荐(0) 编辑
 

2013年12月25日

摘要: AutoReleasePoolautoreleasepool并不是总是被auto 创建,然后自动维护应用创建的对象。自动创建的情况如下:1. 使用NSThread的detachNewThreadSelector:toTarget:withObject:方法创建新线程时,新线程自动带有autoreleasepool。2. Main thread of Cocoa Application以下情况需要开发者创建:1. 在使用Dispatch Queue时, 虽然其Pool中每个thread都会有autoreleasepool,但是如果我们给的task每个都创建一些对象,并做autorelease,那 阅读全文
posted @ 2013-12-25 06:58 做个不善的人 阅读(5484) 评论(0) 推荐(0) 编辑
 

2013年11月18日

摘要: View GeometryFrame & BoundsGraphically, a view can be regarded as a framed canvas. The frame locates the view in its superview, defines its size, and clips drawing to its edges, while the canvas hosts the actual drawing. The frame can be moved, resized, and rotated in the superview and the view& 阅读全文
posted @ 2013-11-18 13:00 做个不善的人 阅读(245) 评论(0) 推荐(0) 编辑
 

2013年11月15日

摘要: 参考文档:1.http://robert.sesek.com/thoughts/2012/1/debugging_mach_ports.html2.Mach 3 Kernel Interfaces3.http://www.foldr.org/~michaelw/log/computers/macosx/task-info-fun-with-mach3.Mach3 Kernel Principles4.http://docs.huihoo.com/darwin/kernel-programming-guide/boundaries/chapter_14_section_4.html5.http: 阅读全文
posted @ 2013-11-15 13:32 做个不善的人 阅读(2737) 评论(0) 推荐(0) 编辑
 

2013年11月4日

摘要: 根据现在的理解,我把event处理分为5部分,第一是,Event处理的Architecture;第二是,Event的Dispatch到first responder之前; 第三是,Event从first responder出来后;第四是,Action与Event的关系;第五是,Apple Event的处理。1. Event Handling Architecture下面这张图解释了在MacOSX上event处理的过程。Before it dispatches an event to an application, the window server processes it in variou 阅读全文
posted @ 2013-11-04 02:32 做个不善的人 阅读(1836) 评论(0) 推荐(0) 编辑
 

2013年10月31日

摘要: LCMapStringEx: http://msdn.microsoft.com/en-us/library/windows/desktop/dd318702(v=vs.85).aspxFor a locale specified by name, maps an input character string to another using a specified transformation, or generates a sort key for the input string.也就是说对某个指定的Locale,将一个输入的字符使用某种转换映射为另外一个字符,或者对输入的字符串产生一个 阅读全文
posted @ 2013-10-31 08:23 做个不善的人 阅读(5354) 评论(0) 推荐(0) 编辑
 

2013年10月26日

摘要: 转自:http://blog.csdn.net/yanxiaoqing/article/details/7108891在控件事件中,简单解释下下面几个事件。说明:由于是在“iOS 模拟器”中测试的,所以不能用手指,只能用鼠标。1)UIControlEventTouchDown指鼠标左键按下(注:只是“按下”)的动作2)UIControlEventTouchDownRepeat指鼠标左键连续多次重复按下(注:只是“按下”)的动作,比如,鼠标连续双击、三击、……、多次连击。说明:多次重复按下时,事件序列是这样的:UIControlEventTouchDown -> (UIControlEve 阅读全文
posted @ 2013-10-26 08:33 做个不善的人 阅读(6400) 评论(0) 推荐(0) 编辑
 

2013年10月25日

摘要: 之前总结了一些关于字符表示,以及字符串的知识。现在在看看一些关于编译器支持的知识。L"" Prefix几乎所有的编译器都支持L“” prefix,一个字符串如果带有L“”prefix,意味着这个字符串中的字符都被作为wide char存储,但是根据OS的不同这里的wide char又各有不同,比如在Windows上默认使用UTF-16表达Unicode,而MacOSx和Linux使用UTF-32表达Unicode,也就是默认情况下:wchar_t在Windows可用于存储UTF-16的字符,长度为2个字节;而在Linux上往往用于存储UTF-32在字符,长度为4个字节。尽管 阅读全文
posted @ 2013-10-25 05:07 做个不善的人 阅读(3556) 评论(0) 推荐(0) 编辑
 

2013年9月5日

摘要: entitlement是codesign的一个输入,参见:codesign。entitlement的意思是权力,也就是表明应用所具有的权利,可以访问什么,不能访问什么等。这些信息会在codesign时成为应用signature的一部分。应用执行时,系统可以根据这个entitlement的信息限制应用可以做的事情。系统中不同的service有不同的entitlement,比如keychain有keychain-access-groups;iCloud有com.apple.developer.ubiquity-container-identifiers和com.apple.developer.ub 阅读全文
posted @ 2013-09-05 13:35 做个不善的人 阅读(2581) 评论(0) 推荐(0) 编辑
 
摘要: kSecAttrAccessible这个属性控制Keychain中的一个Item什么时候可以被访问,可选值有:kSecAttrAccessibleWhenUnlocked, kSecAttrAccessibleAfterFirstUnlock, kSecAttrAccessibleAlways, kSecAttrAccessibleWhenUnlockedThisDeviceOnly,kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly,kSecAttrAccessibleAlwaysThisDeviceOnly。带有ThisDeviceOnly的意 阅读全文
posted @ 2013-09-05 13:23 做个不善的人 阅读(1946) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 7 8 ··· 34 下一页
 

点击右上角即可分享
微信分享提示