Sockets and runloop sources
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