About View
摘要: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&
阅读全文
理解Mach Port
摘要:参考文档: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:
阅读全文
理解Mac和iOS中的 Event 处理
摘要:根据现在的理解,我把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
阅读全文