Rightpoint / RZDataBinding

Lightweight KVO-based data binding options.
Other
543 stars 57 forks source link

Less dangerous dealloc swizzling #43

Closed jvisenti closed 9 years ago

jvisenti commented 9 years ago

Previously dealloc was swizzled by adding a separate method and then using objc_msgSend to invoke the original implementation. This approach not only simplifies the swizzling to avoid adding an extra method, but also does two things: 1) Specifies self parameter as __unsafe_unretained in the swizzling IMP 2) Invokes the original IMP directly without objc_msgSend