udo.killermann wrote:Bernd,
how can I register an observer via ObjB? I see the the event "ObserveValueForKeyPath" but I don't find a way to relate a property to this event.
I have achieved to register an observer using vanilla Cocoa API through Declare but would like to do it the intended way.
Thanks for your help,
Udo
Udo,
there is no documentation about it in objb yet.
But take a look at objb's NSObject documentation. There are several functions:
AddObserver(..), RemoveObserver(...), WillChangeValueForKey and so on
Some links to external info:
http://cocoawithlove.com/2008/06/five-a ... rving.htmlhttp://stackoverflow.com/questions/3018 ... alueforkeyIf you need some help, please let me know.