Ray's playground

 

2010年10月17日

Polymorphism, Dynamic Typing, and Dynamic Binding(Chapter 9 of Programming in Objective-C 2.0)

摘要: To generate one of the so-called selectors listed in Table 9.1, you apply the @selectordirective to a method name. For example, the following produces a value of type SEL forthe method named alloc, wh... 阅读全文

posted @ 2010-10-17 13:50 Ray Z 阅读(349) 评论(0) 推荐(0) 编辑

Inheritance(Chapter 8 of Programming in Objective-C 2.0)

摘要: Using the @class directive is more efficient because the compiler doesn’t need toprocess the entire XYPoint.h file (even though it is quite small); it just needs to know thatXYPoint is the name ... 阅读全文

posted @ 2010-10-17 00:36 Ray Z 阅读(219) 评论(0) 推荐(0) 编辑

导航