• 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: Problems with Distributed Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with Distributed Objects


  • Subject: Re: Problems with Distributed Objects
  • From: Andreas Mayer <email@hidden>
  • Date: Thu, 26 Feb 2004 19:28:24 +0100

Am 26.02.2004 um 17:03 schrieb Laurent Daudelin:

is your
AMTickerSign object implements the NSCoding protocol?

Yes. But the encode/decode methods seem not to be called.

although I'm not sure I understand your
method and protocol. If your client is calling the server method, then that
method should return the value.

I want to copy the image from the client to the server.

I'm not sure it works for parameters.

The bycopy keyword? Well, according to the Obj-C reference it should.

(bycopy out)getImage; or something like that?

Hm. I might try that. But this is kind of backwards since the client needs to start the communication. I would need the server to respond by requesting the image from the client. Not a problem, really, but feels more complicated than necessary.

Also, you need to import the server protocol into the client

I do.

and it might
help if your server variable is typed properly,

Since the client doesn't know about the server class, all I can do is specify the protocol. This

id <AMTiggerServerProtocol> theServer;

results in this warning:

warning: class `NSDistantObject' does not implement the `AMTiggerServerProtocol' protocol

So I though this

[theServer setProtocolForProxy:@protocol(AMTiggerServerProtocol)];

would be sufficient.

<later>

Well, it seems like I really need to implement that replacementObjectForPortCoder: method. Bugger.

I'll report back when I get it working - or hit another road block. :}


Andreas
_______________________________________________
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.


References: 
 >Re: Problems with Distributed Objects (From: "Laurent Daudelin" <email@hidden>)

  • Prev by Date: NSProgressIndicator display when stopped?
  • Next by Date: Re: Problems with Distributed Objects
  • Previous by thread: Re: Problems with Distributed Objects
  • Next by thread: Re: Problems with Distributed Objects
  • Index(es):
    • Date
    • Thread