Only run cocoa events when there's an update to the state