Monday, July 5, 2010 [Tweets] [Favorites]

Fun With NoodleGlue

Paul Kim:

It’s a simple class that wraps around a block allowing you to use it as the target and action for APIs that require it. It also optionally can take an extra block that is executed when the glue object is deallocated. This allows you to do any cleanup. In my NSTimer category from last time, I used this cleanup ability to allow the object to unregister from any notifications.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment