rezaali/ofxUI — pull request #12 by jesusgollonet (2012-04-11 10:33:34+00:00)
Title: ofEvents will change to ofEvents() in 0071

hey reza. was trying to use the addon in the current develop branch of openframeworks and had to update the way ofEvents are registered.

previously

```c++
ofAddListener(ofEvents.update, this, &ofxUICanvas::onUpdate);
```

now ofEvents() is a singleton and I think it's the way forward

```c++
ofAddListener(ofEvents().update, this, &ofxUICanvas::onUpdate);
```

probably shouldn't be integrated until 0071 is out, but anyway.

thanks! this is a great addon