In the example code, I simplified the implementation of drawRect. In real app, some areas of the window are transparent, so i can't set ignoresMouseEvents.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: