Objective-C Runtime Programming Guide 笔记01

1.runtime system acts as a kind of operating system for the Object-C language.

2.dynamically loading new classes at runtime,and forwarding messages to other objects.It also provides information about how you can find information about objects while your program is running.

3.There are two version of the object-C runtime-"modern" and "legacy".the most notable new feature is that instance variables in the modern runtime are "non-fragile":

-in the legacy runtime,if you change the layout of instance variable in a class,you must recompile classes that inherit from it;

-in the modern runtime,if you change the layout of instance variables in a class,you do not have to recompile classes that inherit from it.

-in addition,the modern runtime supports instance variable synthesis for declared properties.

-iphone application and 64-bit programs on OS X v10.5 and later use the modern version of the runtime.

4.interact with the runtime system at three distinct levels:

-through Object-C source code;

-through methods defined in the NSObject class of the Foundation framework;

-through direct calls to runtime function;

5.Runtime system allow you to use plain C to replicate what the compiler does when you write Objective-C code.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值