• 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
DO, replyWithException and oneway void message...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DO, replyWithException and oneway void message...


  • Subject: DO, replyWithException and oneway void message...
  • From: Aurélien Hugelé <email@hidden>
  • Date: Thu, 20 Oct 2005 19:24:34 +0200

Hi list !

I hope any Cocoa Distributed Object Master (Chris Kane and Wade do you hear me ?) can help me on this point :

i use Distributed Objects.

On my server, the connection delegate implements - (BOOL)connection: (NSConnection *)conn handleRequest:(NSDistantObjectRequest *)doReq, does some (crazy) logic to know if the originator of this message can message us with *this* invocation [i omit complex details here, but they are not important for the problem].

what i need, is to be able to return an exception to the client, to be clearer : to raise an exception on the *client*.

from what the documentation says : - (void)replyWithException: (NSException *)exception is perfect for that :)

i add that i make connection: handleRequest return YES, to show i managed the invocation myself!

the only problem is that the exception is not raised on my client !

So, my question could not be simpler : is it because the message the client sent to the server is (oneway void) qualified ?
because oneway void messages should not return anything, replyWithException: does not work as it should be ?


Thanks to the (few) people that may help me on this problem

Aurelien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: DO, replyWithException and oneway void message...
      • From: Aurélien Hugelé <email@hidden>
  • Prev by Date: Re: NSWindow and NSImageView
  • Next by Date: Re: DO, replyWithException and oneway void message...
  • Previous by thread: SOLVED: tabbing order not respected?
  • Next by thread: Re: DO, replyWithException and oneway void message...
  • Index(es):
    • Date
    • Thread