0

I am not sure if this is even possible within the realm of iOS and Objective-C, but, being able to do this would simplify so so much...

I would like to be able to execute one (or more) actions called by @selector or similar way, whenever an NSObject is modified in memory. An alternative to a callback, is a polling mechanism via a timed thread, but this seems excessive and inefficient.

I have not been able to find answers or examples to anything like this yet, but, there may be someone who knows for sure.

geekyaleks
  • 1,281
  • 3
  • 18
  • 29
  • 1
    Perhaps KVO is what you are looking for? http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html – trojanfoe Feb 11 '13 at 15:51
  • Oh, that looks really good, thank you.. At first look, it reminds me of "Observer/Observable" mechanism in Java.. – geekyaleks Feb 11 '13 at 16:05

0 Answers0