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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com) > > > > 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: > > > http://lists.apple.com/mailman/options/cocoa-dev/ddavis2%40ddavis2.com > > > > This email sent to [EMAIL PROTECTED] > > > > > > -- Mark Munz unmarked software http://www.unmarked.com/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]