ca.weblite.objc
Interface Recipient

All Known Subinterfaces:
PeerableRecipient
All Known Implementing Classes:
NSObject

public interface Recipient

An interface for an object that can receive messages from the Objective-C runtime. In order to receive messages, the object should be passed to the RuntimeUtils.createProxy() method.

The NSObject class is a concrete implementation of this interface that contains all of the plumbing necessary to operate in the world of the Objective-C runtime. It is probably best to just subclass NSObject rather than implement your own Recipient class.

Author:
shannah
See Also:
NSObject, NSProxy Class Reference

Method Summary
 void forwardInvocation(long invocation)
          Handles the invocation of a method on the recipient.
 long methodSignatureForSelector(long selector)
          Returns the method signature for a specified selector.
 boolean respondsToSelector(long selector)
          Checks to see if this object responds to the specified selector.
 

Method Detail

methodSignatureForSelector

long methodSignatureForSelector(long selector)
Returns the method signature for a specified selector.

Parameters:
selector - The pointer to the selector to check.
Returns:
Pointer to the NSMethodSignature object for the specified selector.
See Also:
NSMethodSignature Class Reference, forwardInvocation: Method reference (from NSProxy)

forwardInvocation

void forwardInvocation(long invocation)
Handles the invocation of a method on the recipient. Typically this should either be handled by a java method, or routed to some parent object that is being proxied.

Parameters:
invocation - The NSInvocation object.
See Also:
NSInvocation Class Reference, For a concrete imlementation., forwardInvocation: Method reference (from NSProxy)

respondsToSelector

boolean respondsToSelector(long selector)
Checks to see if this object responds to the specified selector.

Parameters:
selector -
Returns:
True if the object responds to the specified selector.


Copyright © 2012–2014 Web Lite Solutions Corp.. All rights reserved.