Public Member Functions | |
| (id) | - initWithTarget:runLoop: |
| Create an RPC proxy with the provided target and runloop objects. | |
Static Public Member Functions | |
| (id) | + proxyWithTarget: |
| Create an RPC proxy with the provided target object. | |
| (id) | + proxyWithTarget:runLoop: |
| Create an RPC proxy with the given target object. | |
This allows concurrent threads to safely call methods on runloop-driven receivers.
This is primarily useful in bridging the gap between thread-based actors and Cocoa's main runloop. By using the PLRunloopRPCProxy as an adapter, you may pass the proxy directly to other threads. Any methods called directly on those threads will be transparently proxied to the Cocoa runloop (the main run loop, or otherwise).
| + (id) proxyWithTarget: | (NSObject *) | target |
Create an RPC proxy with the provided target object.
All messages to the proxy will be delivered on the current runloop, as returned by +[NSRunLoop currentRunLoop]
| + (id) proxyWithTarget: | (NSObject *) | target | ||
| runLoop: | (NSRunLoop *) | runLoop | ||
Create an RPC proxy with the given target object.
All messages to the proxy will be delivered on the provided runloop.
| - (id) initWithTarget: | (NSObject *) | target | ||
| runLoop: | (NSRunLoop *) | runLoop | ||
Create an RPC proxy with the provided target and runloop objects.
All messages to the proxy will be delivered on the provided runloop.
| target | Message target. | |
| runLoop | Run loop on which RPC invocations will occur. |
1.5.5