Tuesday, June 21, 2011

Lazy Evaluation in Objective-C

Rob Rix:

Applying the runtime techniques we described above yields a function, TESSValueize, which takes a block and swizzles it to be a member of a subclass (dynamically created if it does not already exist), copying in methods from the TESSValue class which conforms to the TESSValue protocol (remember that protocols and classes have different namespaces).

Comments RSS · Twitter

Leave a Comment