Rightpoint / RZDataBinding

Lightweight KVO-based data binding options.
Other
543 stars 57 forks source link

Migrating to 2.0 #42

Closed mergesort closed 9 years ago

mergesort commented 9 years ago

I was using version 1.2, and just updated to 2.0. I noticed it included a breaking change, and won't compile now, but can't find any documentation on it.

The code I had looked like this

[self rz_addTarget:self action:@selector(reloadAppIntegrations) forKeyPathChange:RZDB_KP(self.tableDataSource.appIntegrations) callImmediately:NO];

It looks like the RZDB_KP was removed, so I'm wondering how do I pass in a keyPath (preferably not as a string?) to create the binding on.

Thanks a lot!

mergesort commented 9 years ago

Never mind... I just realized that was moved to RZDBMacros.h, and switched to @import RZDataBinding syntax and everything works now.