[[ Cocoa ]] Implemented flushEvents.