[swift-users] NSInvocation equivalent

Jens Alfke 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.

—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161005/f13bb778/attachment.html>


More information about the swift-users mailing list