Re: swift and objective-c
Re: swift and objective-c
- Subject: Re: swift and objective-c
- From: Andreas Mayer <email@hidden>
- Date: Sun, 08 Jun 2014 02:49:27 +0200
Am 07.06.2014 um 21:42 schrieb Scott Ribe <email@hidden>:
> Message passing is literally nothing more than dynamic function dispatch based the type of the 1st argument. It appears in different syntactic guises in different languages, but they are semantically equivalent.
Right.
So what's the Swift replacement for the following?
a) -forwardInvocation:
b)
SEL selector = NSSelectorFromString(methodName);
if ([self respondsToSelector:selector]) {
result = [self performSelector:selector withObject:someObject];
}
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden