摘要:__attribute__ Directives 1. NS_RETURNS_INNER_POINTER "__attribute__((objc_returns_inner_pointer)) and NS_RETURNS_INNER_POINTER Indicates that the meth
阅读全文
摘要:MachOView-v2.4.9200.dmg Crash 在OS X(其版本号: 10.11.6 (15G31))下载MachOView-2.4.9200.dmg后,打开Fat Binary后,MachOView一直Crash。 1. Crash Report 2. Fix this crash
阅读全文
摘要:class clusterIn a class cluster, only an abstract superclass is public. Allocating an instance actually createsan object of a private subclass. As suc...
阅读全文
摘要:Primitive Method"When it comes to subclassing, knowing which methods are ‘primitive’ methods is important.The notion of primitive methods are those me...
阅读全文
摘要:1.cultofmachttp://www.cultofmac.com/2. imorehttp://www.imore.com/3. osxdailyhttp://osxdaily.com/
阅读全文
摘要:Garbage Collection is not supported当Xcode编译Mac OSX App时报错:"Garbage Collection is not supported"的解决办法:1. 不需要迁移到ARC仍然可以编译通过"If your project is imported ...
阅读全文
摘要:1. 原子操作 (Atomic Operations) 编写多线程代码最重要的一点是:对共享数据的访问要加锁。 Shared data is any data which more than one thread can access. 原子操作(Atomic Operations)满足只有一个线程
阅读全文
摘要:1.Technical Q&A QA1398Mach Absolute Time Unitshttps://developer.apple.com/library/mac/qa/qa1398/_index.html2.Kernel Programming Guidehttps://developer...
阅读全文
摘要:1. CocoaPods CocoaPods 是Objective-C (iOS and OS X) projects 的依赖管理器。 A CocoaPod (singular) is a specification for a library, usually open source. Cocoa
阅读全文
摘要:Homebrew How to install pip on mac? http://stackoverflow.com/questions/12092306/how-to-install-scipy-with-pip-on-mac-mountain-lion-os-x-v10-8 1. Scipy
阅读全文
摘要:Operation on ZipFile Reference 在Mac OS X和iOS中操作.zip文件(例如创建zip文件, 从zip文件中抽取数据): 1. http://stackoverflow.com/questions/11333399/download-and-unzip-file-
阅读全文
摘要:1. static libraryHow to check target architecture of a static libraryhttp://changhoward.blogspot.com/2012/03/how-to-check-target-architecture-of.htmlFor Mac OS: Use lipo. Ex. lipo -info staticLibrary.aFor Linux OS: Use file Ex. file staticLibrary.c在Mac OS上file也是支持的。2. dynamic library
阅读全文
摘要:1. 使用SvnX的入门http://www.divvun.no/doc/tools/docu-svn-user-svnx.html2. SvnX的代码https://code.google.com/p/svnx/
阅读全文
摘要:1. ObjC的基础 2. ObjC2.0中的编译指令 3. ObjC Runtime 4. ObjC Object Model 5. ObjC的新语法 6. FQA 1. ObjC的基础 2. ObjC2.0中的编译指令 http://www.learn-cocos2d.com/2011/10/c
阅读全文
摘要:如何利用target conditionals和availabilty如何来区分平台iOS OR Mac“When building for iOS the deployment target is __IPHONE_OS_VERSION_MIN_REQUIRED and the maximum SDK is __IPHONE_OS_VERSION_MAX_ALLOWED” R[1]Availability.h 头文件中有各版本号的定义Reference:1.http://www.cocoanetics.com/2012/09/target-conditionals-and-availabil
阅读全文
摘要:Objective-C Compiler Directives @dynamic "You use the @dynamic keyword to tell the compiler that you will fulfill the API contract implied by a proper
阅读全文
摘要:1. Automagic Factories in Objective-Chttp://www.bobmccune.com/2011/04/08/automagic-factories-in-objective-c/Objective-C Runtime:objc_getClassList()class_getSuperclass()
阅读全文
摘要:逆向可以窥探一下其他程序的一些设计思路,同时对这些东西的了解有助于定位Crash的原因,所以说 逆向在coding之余是不错的选择。 1. class-dump http://www.codethecode.com/projects/class-dump/ 2. mikeash.com的文章 Obj
阅读全文
摘要:0. lldb的帮助 (lldb) help 显示lldb的命令 (lldb) help command 显示某个命令的帮助 (lldb) help command subcommand 显示命令的子命令的帮助 1. 使用lldb的断点(breakpoint) 1.1 通过在IDE中在每行代码前点击
阅读全文
摘要:Is Cocoa a legacy framework?http://blog.jjgod.org/2011/07/01/is-cocoa-a-legacy-framework/ VS.Designing GitHub for Machttp://warpspire.com/posts/designing-github-mac/
阅读全文