• 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: Troubleshooting CFMessagePort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Troubleshooting CFMessagePort


  • Subject: Re: Troubleshooting CFMessagePort
  • From: Dave Keck <email@hidden>
  • Date: Thu, 6 Jan 2011 19:48:25 -0500

I don't see anything obviously wrong with your code after a cursory
glance. I assume you're familiar with the bootstrap context issues
mentioned in TN2083 and elsewhere?

If you can post a complete example that exhibits the problem, I'd be
happy to investigate further. However, consider using NSMachPort
instead of CFMessagePort; you can lose a lot of code in doing so.
Here's an example showing how to set up a client and server using
NSMachPort and NSMachBootstrapServer:

    http://pastie.org/1435791

This code would of course work the same if the client and server were
in separate processes, assuming the server port is registered in a
bootstrap context that's visible to the client.

> Is there any utility to maybe probe the Mach ports that my app has open?  I can't find anything like that.

top(1) and Activity Monitor can list the number of ports a process has
open, but I'm not aware of any utilities that go into any more detail.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Troubleshooting CFMessagePort
      • From: Dave Keck <email@hidden>
References: 
 >Troubleshooting CFMessagePort (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: How to get "colored" font smoothing in a CALayer
  • Next by Date: Re: Troubleshooting CFMessagePort
  • Previous by thread: Troubleshooting CFMessagePort
  • Next by thread: Re: Troubleshooting CFMessagePort
  • Index(es):
    • Date
    • Thread