• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 1 #276 - 13 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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."


  • Prev by Date: Re: Want to make changes to my UI, do I lose current code?
  • Next by Date: Why doesn't this code produce a PDF?
  • Previous by thread: NSTextView, NSCenterTextAlignment and trailing spaces
  • Next by thread: Why doesn't this code produce a PDF?
  • Index(es):
    • Date
    • Thread