Re: cocoa-dev digest, Vol 1 #276 - 13 msgs
Re: cocoa-dev digest, Vol 1 #276 - 13 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #276 - 13 msgs
- From: Lloyd Sargent <email@hidden>
- Date: Thu, 12 Jul 2001 17:19:26 -0500
Is NSDate not really an object? It doesn't seem to like autoRelease
which begs the question: if I have the following code:
- (void) initializeHardware
{
int val = 0;
NSAutoreleasePool * localPool = [[NSAutoreleasePool alloc] init];
NSDate *sleepyTime = [NSDate date];
while (YES)
{
NSLog(@"Running in a second thread %d", val++);
sleepyTime = [sleepyTime addTimeInterval: 5.00];
[NSThread sleepUntilDate:sleepyTime];
}
[localPool release];
}
Does sleepyTime get created over and over OR is this really a C/C++
routine in disguise? The documentation is not really clear (nor do the
header files make it much easier!).
Thanks!
Lloyd
---
Canna Software Development
"No animals were injured in the creation of this e-mail, however some
routers sustained minor cuts and bruises."