gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop -run issue/question


From: Adam Fedor
Subject: Re: NSRunLoop -run issue/question
Date: Wed, 10 Aug 2005 20:58:00 -0600

Richard would know more, but he's away now. You need to make sure you have input sources, otherwise the loop will quite. Perhaps read this thread to understand more:

http://lists.gnu.org/archive/html/discuss-gnustep/2005-08/msg00008.html


On Aug 9, 2005, at 11:55 PM, Stefan Urbanek wrote:

Hello,

I am working on StepTalk scripting environment process ("server"). I do
it as it is usual for DO servers:

 ... register object...
 [[NSRunLooop currentRunLoop] run];
 NSLog(@"Terminated");
 ...

I have tried also: [[NSRunLoop currentRunLoop] runUntilDate:[NSDate
distantFuture]];

However, the process terminates, that is, it goes through the NSLog.
Anyone knows what should be reasons for that?

Very dirty (because under development) StepTalk source is here, if it
can help:

http://stefan.agentfarms.net/Download/GNUstep/Prototypes/StepTalk -20050810.tar.bz2

The problematic code is in Tools/stenvironment.m at the bottom. You can
just run it and it terminates properly, where it should not terminate at
all.

Also I am getting following:
2005-08-10 07:51:55.000 stenvironment[16580] Registered environment
'test'
2005-08-10 07:51:56.000 stenvironment[16580] empty components sent
/home/GNUstep/Local/Tools/stenvironment: Uncaught exception
NSPortTimeoutException, reason: root proxy request

(when run stexec Testing/Smalltalk/distant.st).

Thing is, that the "empty components sent" happens on a
NSDistributedNotification. Both, object and infodict are not nil, so I
am a bit puzzled.

What I am doing wrong?

Thank you,

Stefan Urbanek
--
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then
you win.
- Mahatma Gandhi




_______________________________________________
Gnustep-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnustep-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]