View on GitHub

BlocksKit

The Objective-C block utilities you always wish you had.

Download this project as a .zip file Download this project as a tar.gz file

BlocksKit

Blocks in C and Objective-C are downright magical. They make coding easier and potentially quicker, not to mention faster on the front end with multithreading and Grand Central Dispatch. BlocksKit hopes to facilitate this kind of programming by removing some of the annoying - and, in some cases, impeding - limits on coding with blocks.

BlocksKit includes: basic block calling; key value observing extensions; filtering and enumeration for mutable and immutable collections; NSInvocation from a block; block-based timers, controls, and gesture recognizers; block-based alert views and action sheets; and block-backed delegation alternatives to NSURLConnection, NSCache, MFMailComposeViewController, MFMessageComposeViewController, and UIWebView.

Dependencies

BlocksKit is a framework and static library for Mac OS X 10.6+ and iOS 4.0+. Use of BlocksKit on iOS requires linking against Core Graphics, MessageUI, and UIKit.

Installation

BlocksKit can be added to a project using CocoaPods, or through the methods described below.

Framework

Library

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/zwaldowski/BlocksKit

Documentation

An Xcode 4 compatible documentation set is available using this Atom link. Add it to Xcode 4's preferences and it'll download automatically. You may also view the documentation online.

License

BlocksKit is created and maintained by Zachary Waldowski under the MIT license. The project itself is free for use in any and all projects. You can use BlocksKit in any project, public or private, with or without attribution. The license is reproduced below.

Copyright (c) 2011-2012 Zachary Waldowski, Alexsander Akers, and the BlocksKit Contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

All of the code included in BlocksKit is licensed either under BSD or MIT, or is otherwise in the public domain. You can use BlocksKit in any project, public or private, with or without attribution.

Credits

BlocksKit takes, repurposes, fiddles with, and groups together a variety of block-related code generally found on GitHub.

The following people (in alphabetical order) have their code lovingly enshrined in BlocksKit:

Specific credits exist in the header files and documentation.

Contributors

A special thanks are also extended to the following who have contributed to the project on GitHub.