Re: Distributed Objects and Bonjour
Re: Distributed Objects and Bonjour
- Subject: Re: Distributed Objects and Bonjour
- From: Robert Sesek <email@hidden>
- Date: Tue, 27 Jun 2006 10:57:15 -0700
On Jun 27, 2006, at 9:33 AM, Adam Leonard wrote:
On Jun 26, 2006, at 11:40 AM, Robert Sesek wrote:
[connection setRootObject: [manager dbConnector]];
That might be your problem. If [manager dbConnector] returns an
autoreleased object it will be gone by the time the client connects
to it, so try retaining it. The documentation does not state that
the connection retains the object, so you need to assume it does not.
I've now retained that and I also retain (in the client) the value of
socket. Still no go. I NSLog()'d all the variables except proxy and
this is what is returned (if it helps):
2006-06-27 10:54:53.683 Simple Client[760] selected service:
<NSNetService 0x359c80> local. _tindex._tcp. Ra
2006-06-27 10:54:53.789 Simple Client[760] Warning: -[NSNetService
resolve] is deprecated in Mac OS X 10.4. Please use -[NSNetService
resolveWithTimeout:]
2006-06-27 10:54:53.801 Simple Client[760] socket = <02010610
1002c3a4 c0a80141 00000000 00000000 >
2006-06-27 10:54:53.801 Simple Client[760] ipaddy = <1002c3a4
c0a80141 00000000 00000000 >
2006-06-27 10:54:53.802 Simple Client[760] connection = (**
NSConnection 0x3a9cf0 receivePort <CFSocket 0x378a10 [0xa07c1150]>
{valid = Yes, type = 1, socket = 12, socket set count = 0
callback types = 0x2, callout = 92a541cc, source = 0x0,
run loops = <CFArray 0x3a9db0 [0xa07c1150]>{type = mutable-
small, count = 0, values = (
)},
context = <CFSocket context 0x3b7ea0> sendPort <02010610
1002c3a4 c0a80141 00000000 00000000 > refCount 3 **)
Thanks for the help!
Robert Sesek
Email: email@hidden
www.iris-studios.com
_______________________________________________
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