[swift-users] NSInvocation equivalent
jens at mooseyard.com
Wed Oct 5 18:32:55 CDT 2016
> On Oct 5, 2016, at 4:24 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> However, there are usually better answers than NSInvocation (both in Swift and Objective-C). What are you actually trying to do?
Yeah, the only time I’d recommend using NSInvocation is when implementing a proxy object using -forwardInvocation:, but that's explicitly disallowed in Swift. In other situations invocations are generally too slow, awkward to use, and hard to debug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users