pivotal-legacy / PivotalCoreKit

Shared library and test code for iOS and macOS projects
http://pivotallabs.com
Other
168 stars 85 forks source link

Use -performSelector: instead of objc_msgSend() #125

Closed idoru closed 9 years ago

idoru commented 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

akitchen commented 9 years ago

Thanks for cleaning this up