• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMachPort to raw mach port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSMachPort to raw mach port (From: Thomas Hudson <email@hidden>)

  • Prev by Date: Image Capture Framework docs?
  • Next by Date: Re: Full screen Mode
  • Previous by thread: NSMachPort to raw mach port
  • Next by thread: Re: Carbon Events vs Cocoa Events
  • Index(es):
    • Date
    • Thread