rezaali/ofxUI — pull request #19 by camilosw (2012-05-23 19:17:34+00:00)
Title: Compatibility with OF 007 and OF 0071

On the last commit, you changed ofEvents to ofEvents() and break compatibility with OF 007. I added a definition to support compatibility with both versions.

```c++
#ifdef TARGET_0071
ofAddListener(ofEvents().windowResized, this, &ofxUICanvas::onWindowResized);
#else
ofAddListener(ofEvents.windowResized, this, &ofxUICanvas::onWindowResized);
#endif
```

To support OF 0071, you must add the definition TARGET_0071. I think this is the correct way, because OF 007 is the current version.