Re: Distant object on server thread
Re: Distant object on server thread
- Subject: Re: Distant object on server thread
- From: 정다운 <email@hidden>
- Date: Thu, 27 May 2004 22:03:15 +0900 (JST)
This is interesting. Again, the Apple docs do not elaborate but do I
have to use both the bycopy keyword (as in: - (oneway
void)setFiles:(bycopy in NSArray *files)) and also override
replacementObjectForPortCoder:? Each object in the array is a
heavyweight wrapper (they are ADFiles from the AutoDoc framework) for
NSStrings, NSArrays, etc. Do I only have to override
replacementObjectForPortCoder: once for the ADFile class? Or maybe just
make an NSArray subclass for the files array? Depending on which path
is the correct one, this has the potential to save me a chunk of work
and experimentation (as I mentioned in my previous email, I was
planning--but not really happy about--implementing copyWithZone for the
ADFile class and possibly more objects).
Thanks in advance,
DW
p.s. Sorry -- I hope nobody minds the non-ascii characters in my mails
too much :-)
--- Peter Fischer <email@hidden> wrote:
>
I had a similar problem just a few weeks ago. I was however
>
using
>
DO to communicate through threads, so I was able to pass the pointer
>
the the object in question by simply casting to an integer.
>
I'm not sure I entirely follow your question in your email, but
>
I'll
>
give it my best shot. From you email, it looks like you are able to
>
successfully create the DO, and are able to communicate with the
>
remote
>
server object, but when the remote server attempts to access the
>
NSArray that you had passed the server previously, you get the
>
exception? If so... I have a potential solution. This was
>
something
>
someone recommended to me on this list in the past. Subclass, and
>
override the replacementObjectForPortCoder: message from NSObject.
>
The default implementation only provides a pass by reference
>
implementation, enabling all objects to be distributed by proxy as
>
the
>
default. There is sufficient documentation in the NSObject class to
>
help you with the overriding of the message.
>
If I read your email incorrectly, and you are actually having
>
problems talking to the proxyObject that is a representation of your
>
remote server, then send more information, and I'll try to give you
>
more help. Good Luck!
_____________________________________________________________________
?9;[ FmAvAv?! 8^@O@; :83;<<?d - >_HD! 8^@O
http://mail.yahoo.co.kr
=EBw,A_0mBw,Aw0E7! 8E90@L GQ@Z8.?! - >_HD! @Z5?Bw
http://autos.yahoo.co.kr/autos/
_______________________________________________
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.