macosx: fix potential cgcontext drawing errors
Direct call to -[NSView drawRect:] would cause subsequent drawing failures as the graphics context won't be available.
Replacing with -[NSView setNeedsDisplay:YES] should fix this problem.
Edited by Maxime Chapelet