Observe/Notify


When does an observing object's Notice() method get called?


Update notices are queued and sent out later by the system. This means that when an observed object is modified, the observers do not receive Notice() right away. This has the nice side affect of coalescing multiple changes to an observed object into a single Notice for the observer, as well as not blocking the code which changes an observed object.


Why can't I use the Observe/Notice mechanism to observe the Option key?


Since the option key is a feature of the hardware, there's no easy way to observe it using the standard Magic Cap observe/notice mechanism. The best thing to do is to call OptionKey() periodically to see if the key went down.