Re: NSMachPort to raw mach port
Re: NSMachPort to raw mach port
- Subject: Re: NSMachPort to raw mach port
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 1 Apr 2002 19:04:37 +0100
On Monday, April 1, 2002, at 04:19 PM, Thomas Hudson wrote:
As I understand it, an NSPort is abstract and actually returns an
NSMachPort,
is this correct? Could I create an NSPort and cast to an NSMachPort in
order
to get the machPort number?
I think I read something to that effect, yes, but why not just create an
NSMachPort explicitly?
Otherwise, how are mach port names allocated? How do I determine
what integer value to use for initWithMachPort: (int) machPort
RTFM
file:///System/Library/Frameworks/Foundation.framework/Versions/C/Resources/
English.lproj/Documentation/Reference/ObjC_classic/Classes/NSMachPort.html
- (int)machPort
Returns as an int the Mach port used by the receiver. Cast this value to
a port_t when using it with Mach system calls.
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.