| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in Mac OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSConnection.h |
NSDistantObjectRequest objects are used by the distributed objects system to help handle invocations between different processes. You should never create NSDistantObjectRequest objects directly. Unless you are getting involved with the low-level details of distributed objects, there should never be a need to access an NSDistantObjectRequest. To intercept and possibly process requests yourself, implement the NSConnection delegate method connection:handleRequest:.
Returns the NSConnection object involved in the request.
- (NSConnection *)connection
The NSConnection object involved in the request.
NSConnection.h
Returns the token object representing the conversation in which the receiver was created.
- (id)conversation
The token object representing the conversation in which the receiver was created.
If both ends of the distributed objects connection has independentConversationQueueing set to NO (the default), the conversation object is always nil. Otherwise, it is either a proxy (or a copy) of the object created by the sender of the message or a locally created object, depending which end of the connection has independent queueing on.
createConversationForConnection: (NSConnection)NSConnection.h
Returns the NSInvocation object for the request.
- (NSInvocation *)invocation
The NSInvocation object for the request.
NSConnection.h
Sends a reply back to the remote object making the distant object request.
- (void)replyWithException:(NSException *)exception
The exception to send.
If exception is nil, the return value of the receiverâÂÂs invocation is sent; otherwise, exception is sent and is automatically raised when it arrives at its destination.
NSConnection.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-22)