Closed idoru closed 9 years ago
Avoids warnings and errors related to not casting objc_msgSend() to a function prototype matching the target selector on 64-bit platforms.
Since this code has to support different signatures (the action selector may or may not accept an argument), -performSelector: is used.
For more excruciating detail, see: https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW26
Thanks for cleaning this up
Avoids warnings and errors related to not casting objc_msgSend() to a function prototype matching the target selector on 64-bit platforms.
Since this code has to support different signatures (the action selector may or may not accept an argument), -performSelector: is used.
For more excruciating detail, see: https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW26