Re: DO question.
Re: DO question.
- Subject: Re: DO question.
- From: warren marco <email@hidden>
- Date: Mon, 1 Apr 2002 12:54:16 -0700
>
On Monday, April 1, 2002, at 11:31 AM, Jonathan Wight wrote:
>
>
> Hello,
>
>
>
> I have a daemon that is vending an object (of class CDaemon) via DO.
>
> The
>
> daemon's client process is getting a proxy to that object just fine.
>
> The
>
> client then sends a message to the CDaemon proxy that looks a bit like
>
> this:
>
>
>
> - (CSomeObject *)getSomeObject;
>
>
>
> The object returned is actually a member variable of CDaemon. However
>
> when I
>
> send messages to the returned CSomeObject object the messages never
>
> get to
>
> the Daemon process.
>
>
>
> So can DO shared objects return other shared objects?
>
>
>
> Jon.
>
> _______________________________________________
>
> 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.
>
>
>
>
This is strange. Try defining your selector as
>
- (byref CSomeObject *)getSomeObject;
>
I'm under the impression that by default it should be byref, if a DO
>
modifier is not stated, where the server should send the object as a
>
proxy back to the client. I decided to test your your problem out. I
>
got a NSMutableArray member from my server by byref and then added a
>
object to it(@"HELLO"). Then without byref requested it and displayed
>
its contents.
>
>
2002-04-01 12:29:20.759 CLIENT[407] ("HELLO")
>
>
It worked perfectly. Then I tried it without the byref modifier to get
>
the NSMutableArray. I got the following....
>
>
2002-04-01 12:32:25.410 CLIENT[465] ()
>
>
Solution: add byref
>
- (byref CSomeObject *)getSomeObject;
>
>
I guess I was wrong in assuming byref by default.It must be bycopy.
>
Isn't it byref by default for selector arguments then??
>
>
Hope this helps. Now if someone can can explain to me the
>
NSSocketPortNameServer and whether I'm either stupid or if it just
>
plain doesnt work, and why my client crashes when the server gets
>
shutdown over sockets....
>
>
cheers,
>
Warren Marco
_______________________________________________
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.