• 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
thread/connection question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thread/connection question


  • Subject: thread/connection question
  • From: Sandman <email@hidden>
  • Date: Tue, 6 May 2003 19:03:21 -0400

THE SETUP
-----------------------------------
I have an application that spawn a thread. I followed the example that I found on the net. The name of the app is SimpleThread.

It basically spawn a connection and uses 2 port to communicate back and forth.

I have this object lets say foo that derives from NSObject. The object carry 4 member NSString object.

The main thread method called doSomething, takes a pointer to foo:

(oneway void) doSomething:(foo*) data;

THE PROBLEM
-------------------------------------
When doSomething gets called, data is not what it was in the other calling thread. But if I pass a NSString or other objective-c object, everything is fine.

Anybody got an idea.?
_______________________________________________
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: Re: Cocoa - Naive questions about memory
  • Next by Date: how to change behavior of a document based application
  • Previous by thread: Re: set NSRunAlertPanel to be the frontmost window
  • Next by thread: how to change behavior of a document based application
  • Index(es):
    • Date
    • Thread