Corrected obsolete api usages

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12773 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-02-26 10:38:50 +00:00
parent 63564061bc
commit d5d2c5b6f7
7 changed files with 12 additions and 8 deletions

View file

@ -234,7 +234,8 @@ exit(0);
printf("%s\n", [[[c statistics] description] cString]);
// printf("%s\n", GSDebugAllocationList(YES));
[NSRunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 20 * 60]];
[[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: 20 * 60]];
[c invalidate];
[arp release];
exit(0);

View file

@ -338,7 +338,8 @@ con_loop (id prx)
printf("%s\n", [[[cobj statistics] description] cString]);
//printf("%s\n", GSDebugAllocationList(YES));
[NSRunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 2 * 60]];
[[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: 2 * 60]];
[cobj invalidate];
[arp release];
return 0;

View file

@ -480,9 +480,10 @@ int main(int argc, char *argv[], char **env)
printf("Running...\n");
if (timeout)
[NSRunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: timeout]];
[[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: timeout]];
else
[NSRunLoop run];
[[NSRunLoop currentRunLoop] run];
printf("Finished\n");
[arp release];

View file

@ -59,7 +59,7 @@ int main()
[NSTimer scheduledTimerWithTimeInterval: 3.0
invocation: inv
repeats: YES];
[NSRunLoop run];
[[NSRunLoop currentRunLoop] run];
[arp release];
exit (0);
}

View file

@ -310,7 +310,7 @@ int main(int argc, char *argv[])
printf("list's hash is 0x%x\n", (unsigned)[l hash]);
printf("object's hash is 0x%x\n", (unsigned)[o hash]);
[NSRunLoop run];
[[NSRunLoop currentRunLoop] run];
[arp release];
exit(0);

View file

@ -47,7 +47,8 @@ int main (int argc, char *argv[])
[out_port sendPacket: packet timeout: 10.0];
[packet release];
[NSRunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 1.0]];
[[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: 1.0]];
}
[out_port close];

View file

@ -86,7 +86,7 @@ int main (int argc, char *argv[])
autorelease]];
[[NSRunLoop currentRunLoop] addPort: port
forMode: NSDefaultRunLoopMode];
[NSRunLoop run];
[[NSRunLoop currentRunLoop] run];
#else
{
id packet;