O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSPortCoder — Mac OS X 10.0

Synopsis

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

image with no caption

@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;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required