Re: Distributed Objects/NSConnection dying under 10.4
Re: Distributed Objects/NSConnection dying under 10.4
- Subject: Re: Distributed Objects/NSConnection dying under 10.4
- From: "Mark Munz" <email@hidden>
- Date: Tue, 27 May 2008 11:46:18 -0700
The Server app only has a single thread. I tried calling
enableMultipleThreads just in case (fingers were crossed), but that
didn't appear to change the results. The connection still just dies.
Mark Munz
On 5/27/08, Donald Lamar Davis II <email@hidden> wrote:
> Are you running a multi-threaded app. In 10.5 multi-threading is enabled by
> default for NSConnection. In 10.4 this needs to be enabled by calling
> -enableMultipleThreads
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSConnection_Class/Reference/Reference.html#//apple_ref/occ/instm/NSConnection/enableMultipleThreads.
>
> Don Davis
>
>
> On May 27, 2008, at 12:06 PM, Mark Munz wrote:
>
>
> >
> > I decided to start using DO to communicate between my applications,
> > but I've recently discovered that while NSConnection maintains its
> > connection for the life of the app under 10.5, it seems to die after
> > just a few seconds under 10.4. The Server app continues to run fine
> > (no runtime errors or such), it is just that the connection died.
> >
> > The two apps are on the same machine.
> >
> > In looking at the documentation, i see nothing that would indicate
> > that that life of an NSConnection isn't tied to the thread it is on
> > (and since I'm using defaultConnection, that would be on the app's
> > main thread).
> >
> > All of this runs as expected under 10.5.
> >
> > Is this a known issue under 10.4? Is there a way to extend the
> > connection life under 10.4? Or am I going to be forced to abandon
> > Distributed Objects because I need to support 10.4?
> >
> > Any help or insight with this issue is appreciated.
> >
> > Thanks.
> >
> > --
> > Mark Munz
> > unmarked software
> > http://www.unmarked.com/
> > _______________________________________________
> >
> > Cocoa-dev mailing list (email@hidden)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> >
> > This email sent to email@hidden
> >
> >
>
>
--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden