PLRunloopRPCProxy Class Reference

The PLRunloopRPCProxy provides transparent invocation of Objective-C messages on a given runloop. More...

List of all members.

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.


Detailed Description

The PLRunloopRPCProxy provides transparent invocation of Objective-C messages on a given runloop.

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).


Member Function Documentation

+ (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.

Parameters:
target Message target.
runLoop Run loop on which RPC invocations will occur.


The documentation for this class was generated from the following files:

Generated on Tue Dec 2 23:38:52 2008 for PlausibleActorKit by  doxygen 1.5.5