• 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
What is the equivallent of CFMessagePortRef in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is the equivallent of CFMessagePortRef in Cocoa?


  • Subject: What is the equivallent of CFMessagePortRef in Cocoa?
  • From: Stéphane Sudre <email@hidden>
  • Date: Sat, 13 Dec 2003 20:27:26 +0100

I've been looking at the Foundation Documentation and I must confess I don't understand at all which class is supposed to be the equivalent of CFMessagePortRef...

Is it NSMessagePort or NSPortMessage?

Moreover the Discussion part of the documentation is completely omitting these classes AFAIK and I haven't found any clear sample code or tutorial explaining how to do the equivalent of this on the server side:

CFMessagePortRef myLocalMessagePort;
CFRunLoopSourceRef myRunLoopSource;

myLocalMessagePort =CFMessagePortCreateLocal(NULL, [...]);

myRunLoopSource =CFMessagePortCreateRunLoopSource(NULL, myLocalMessagePort,[...]);

CFRunLoopAddSource(CFRunLoopGetCurrent(), myRunLoopSource,[...]);

and the equivalent of this on the client side :

CFMessagePortRef tRemote;

tRemote=CFMessagePortCreateRemote(NULL,[...]);

CFMessagePortSendRequest(tRemote,[...]);

----------------------------------------------------

I can't believe it's easier to do this in CoreFoundation (which is my current API fail-over solution) than in Foundation.

Any link or RTFM (with a link)?
_______________________________________________
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.

  • Prev by Date: Help with Notifications (How To)
  • Next by Date: NSNumberFormatter in Panther
  • Previous by thread: Re: Help with Notifications (How To)
  • Next by thread: Re: What is the equivallent of CFMessagePortRef in Cocoa?
  • Index(es):
    • Date
    • Thread