Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Library Providing An Objective-C Version Of .NET’s Reactive Extensions

  •  
  •  
  •  
  •  
  •  

There are a few libraries out there that provide an improved syntax for Key-Value observing, but I’ve come across a library that takes things a step further.

This new library known as ReactiveCocoa is similar to .NET’s reactive extensions (but for Objective-C) and is  based on the reactive programming paradigm which is probably best explained with this quote from Wikipedia:

in an imperative programming setting, a := b + c would mean that a is being assigned the result of b + c in the instant the expression is evaluated. Later, the values of b and c can be changed with no effect on the value of a.

In reactive programming, the value of would be automatically updated based on the new values.

And the Github page for ReactiveCocoa states these benefits:

  1. The ability to compose operations on future data.
  2. An approach to minimizing state and mutability.
  3. A declarative way to define behaviors and the relationships between properties.
  4. A unified, high-level interface for asynchronous operations.
  5. A lovely API on top of KVO.

ReactiveCocoa is provided by  Github.

You can find the ReactiveCocoa repository on Github here along with several syntax examples.

Nick from Velti Inc. has some great examples demonstrating why this library is so cool on his blog.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments