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

NSMessagePort


  • Subject: NSMessagePort
  • From: Jeff Disher <email@hidden>
  • Date: Tue, 28 Jan 2003 22:21:07 -0500

Hello,

I am trying to receive information in my main thread from my other threads using an NSMessagePort.

I create the port using the "port" message, retain it, set my object to be its delegate, and then register it as a runloop input source "addPort:forMode:" before sending it to the init method for my object that will eventually run in a different thread.

In the other thread, I create a NSPortMessage using the same port instance as above as the send port, a new NSMessagePort (created with the "port" message), and an array with only an encoded string (in NSData form) as the contents of the components array.

When I tell this NSPortMessage to send itself before date 10 seconds from now, it crashes. At the top of the stack trace is "CFDictionarySetValue".

Can anyone think of what I am doing wrong?

Thanks,
Jeff Disher
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
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: click select all
  • Next by Date: Re: Drawing gradients in views
  • Previous by thread: click select all
  • Next by thread: Trouble with NSSplitView
  • Index(es):
    • Date
    • Thread