Passes a given invocation to the real object the proxy represents.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The invocation to forward.
NSProxy’s implementation merely raises
NSInvalid. Override this method in your subclass to handle
an appropriately, at the very least by setting its return value.
For example, if your proxy merely forwards messages to an instance variable named
real, it can implement
forward like this: