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

CFRunLoopStop


  • Subject: CFRunLoopStop
  • From: Todd Lair <email@hidden>
  • Date: Thu, 4 Mar 2004 02:00:56 -0500

I've been using a secondary RunLoop in a thread, and it has DO NSConnections as well as NSTimers. This loop runs until the thread is ready to exit, and I was able to remove or invalidate those sources which caused the thread's loop to return from the run method call.

Now, I've added an NSURLConnection to the mix, and I'm using this asynchronously. However, I cannot, no matter what I try to do, figure out how to remove the sources it adds so my run loop will end. I've tried, honest.

I'm going to try and use CFRunLoopStop. However, before I give this a shot, I'd like to know that a run loop cleans up its own sources when deconstructred. Once returning from run, I'll be exiting the thread which I assume releases the loop for the thread. Does the runloop deallocate its sources as well when it does this?

I could figure this out, but I've been banging my head on this one for a couple of days, and I have quite a few dents in my head. I thought if someone new, maybe it would save me some extra brain damage.

Thanks.
_______________________________________________
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.


  • Follow-Ups:
    • Re: CFRunLoopStop
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: PackageMaker...what would you add? change?
  • Next by Date: Re: Giving a NSToolbaritem a command key...?
  • Previous by thread: Re: PackageMaker...what would you add? change?
  • Next by thread: Re: CFRunLoopStop
  • Index(es):
    • Date
    • Thread