mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
63564061bc
commit
d5d2c5b6f7
7 changed files with 12 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -59,7 +59,7 @@ int main()
|
|||
[NSTimer scheduledTimerWithTimeInterval: 3.0
|
||||
invocation: inv
|
||||
repeats: YES];
|
||||
[NSRunLoop run];
|
||||
[[NSRunLoop currentRunLoop] run];
|
||||
[arp release];
|
||||
exit (0);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue