Introduction to the run-time mechanism
Runtime
Runtime is everything between your each function call!
The OBJECTIVE-C program can interact with the runtime system at three different levels:
The POBJECTIVE-C source program P calls the run-time function directly through the method P defined in the NSObject class
In most cases, the runtime system works only behind the scenes, primarily for writing and compiling objective-c source programs
Find the runtime documentation in the online Help
Oc/c/c++ the compilation process
Use Clang to rewrite. m files as CPP files
Open Terminal
PCD project file directory PCLANG-REWRITE-OBJC Main.mpopen main.cpp
Tip: To understand the underlying implementation mechanism, the easier The rewrite code is, the better
Runtime Walkthrough--getting an array of object properties
String Assignment
Objc_msgsend
Class_copypropertylist
About Arc & MRC
ARC is the retain and release of the object at run time without the need for programmer involvement
Apple's compiler developers have done countless tests on the arc and can say that there is little memory management error with ARC
In addition, because of the additional optimization of the compilation, the arc code is much more efficient than the code that the programmer manages the memory manually.
Q & A
Introduction to the run-time mechanism