• 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
Sockets and runloop sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sockets and runloop sources


  • Subject: Sockets and runloop sources
  • From: Remco Poelstra <email@hidden>
  • Date: Wed, 22 Sep 2010 14:01:52 +0200

Hi,

I've a CFSocketRef, which runloop source I've added to the default runloop. All works fine.
When I want to clean up the socket, I explicitly remove the source from the runloop and then call CFSocketInvalidate and CFRelease on the socket. I'm wondering whether is actually necessary to remove the source from the runloop first.
NSTimer objects seem to remove their source from a runloop automatically when they are invalidated.
Can someone tell me whether it's needed?

Kind regards,

Remco Poelstra

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSTextView
  • Next by Date: Efficiently adding a bunch of items to an NSMutableArray
  • Previous by thread: i5/i7 w/External 24" LED Cinema identifying screens - testing help
  • Next by thread: Efficiently adding a bunch of items to an NSMutableArray
  • Index(es):
    • Date
    • Thread