• 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: HTML Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML Editor


  • Subject: Re: HTML Editor
  • From: Creed Erickson <email@hidden>
  • Date: Fri, 6 Jun 2003 14:59:59 -0700

On Friday, June 6, 2003, at 11:54 AM, Just van Rossum wrote:

Creed Erickson wrote:

myDate = [NSDate dateWithTimeIntervalSinceNow:0.001];
[NSThread sleepUntilDate: myDate ]
release myDate;

I think you mean

myDate = [[NSDate alloc] initWithTimeIntervalSinceNow:0.001];
[NSThread sleepUntilDate: myDate];
[myDate release];

ie. the point is to avoid autoreleasing objects.

Just


Yep, This is what happens when newbies make code snippets public. Thank-you for the correction.

In the future I'll try to avoid writing email code snippets unless I am sufficiently caffeinated.

--
Creed Erickson <email@hidden>
Livermore, CA
(925) 683-7265 (mobile)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Thread memory leak
  • Next by Date: Re: Project Builder recompiles all files all the time...
  • Previous by thread: Re: HTML Editor
  • Next by thread: model->controller messaging
  • Index(es):
    • Date
    • Thread