NSMachPort

NSMachPort Mac OS X 10.0

This subclass of NSPort provides an object-oriented wrapper to Mach IPC ports, which can be used either as endpoint for distributed object connections, or for raw messaging. NSMachPort objects only support local messaging; NSSocketPort provides support for remote messaging over a network.

figs/cocn_1351.gif

@interface NSMachPort : NSPort
 // Initializers
   - (id)initWithMachPort:(int)machPort;
 // Class Methods
   + (NSPort *)portWithMachPort:(int)machPort;
 // Instance Methods
   - (int)machPort;
   - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode;
   - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode;
// Methods Implemented by the Delegate
   - (void)handleMachMessage:(void *)msg;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes