NSPortCoder

NSPortCoder Mac OS X 10.0

This concrete subclass of NSCoder is used by the distributed objects system to encode, transmit, and decode object proxies between two NSConnection objects residing in separate processes (objects, too, can be transmitted using this class).

figs/cocn_1376.gif

@interface NSPortCoder : NSCoder
 // Initializers
   - (id)initWithReceivePort:(NSPort *)rcvPort sendPort:(NSPort *)sndPort components:(NSArray *)comps;
 // Class Methods
   + (id) portCoderWithReceivePort:(NSPort *)rcvPort sendPort:(NSPort *)sndPort components:(NSArray *)comps;
 // Instance Methods
   - (NSConnection *)connection;
   - (NSPort *)decodePortObject;
   - (void)dispatch;
   - (void)encodePortObject:(NSPort *)aport;
   - (BOOL)isBycopy;
   - (BOOL)isByref;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes