• 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
Distributed objects in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distributed objects in Panther


  • Subject: Distributed objects in Panther
  • From: "Peter Sichel" <email@hidden>
  • Date: Mon, 4 Aug 2003 22:07:42 -0400

I'm using Distributed Objects to communicate between threads in my application
and have encountered some incompatible behavior in Panther. Specifically I
create a thread following the SimpleThreads example and then call it to
perform an asynchronous operation like this:

- (oneway void)startService:(NSString *)inURL fromController:(id)controller;

[myServer startService:someURL fromController:self];

When my thread wants to communicate results back to the controlling
thread, it calls back using the controller object (DO proxy) that
was passed in like this:

- (oneway void)receiveNotification:(NSNotification *)aNotification;

[controller receiveNotification:aNotification];

This has worked well for over two years but now crashes in Panther.
The main thread crashes before control reaches the receiveNotification
method.

MY QUESTIONS:

Am I doing something ambiguous or poorly specified by sending
a message to the controller object that was passed in?

Should I be passing the controller object explicitly by reference?

- (oneway void)startService:(NSString *)inURL fromController:(id *)controller;

Any idea why this code suddenly stopped working in the Panther preview?

Thanks,

- Peter
_______________________________________________
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: Change NSPopUpButton titles in DTJC
  • Next by Date: Re: Help: Waiting for other thread to finish?
  • Previous by thread: Change NSPopUpButton titles in DTJC
  • Next by thread: Re: UNICODE problem - conversion creates ill characters _between_ written strings
  • Index(es):
    • Date
    • Thread