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:
Richard Frith-Macdonald 2002-02-26 10:38:50 +00:00
parent e57dc206de
commit 61fa7fb11a
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", [[[c statistics] description] cString]);
// printf("%s\n", GSDebugAllocationList(YES)); // printf("%s\n", GSDebugAllocationList(YES));
[NSRunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 20 * 60]]; [[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: 20 * 60]];
[c invalidate]; [c invalidate];
[arp release]; [arp release];
exit(0); exit(0);

View file

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

View file

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

View file

@ -59,7 +59,7 @@ int main()
[NSTimer scheduledTimerWithTimeInterval: 3.0 [NSTimer scheduledTimerWithTimeInterval: 3.0
invocation: inv invocation: inv
repeats: YES]; repeats: YES];
[NSRunLoop run]; [[NSRunLoop currentRunLoop] run];
[arp release]; [arp release];
exit (0); 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("list's hash is 0x%x\n", (unsigned)[l hash]);
printf("object's hash is 0x%x\n", (unsigned)[o hash]); printf("object's hash is 0x%x\n", (unsigned)[o hash]);
[NSRunLoop run]; [[NSRunLoop currentRunLoop] run];
[arp release]; [arp release];
exit(0); exit(0);

View file

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

View file

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