I was following the XCode tutorial by Apple which uses an NSView and the -(void)drawRectNSRect)dirtyRect method for all the action. I added a for loop to move the NSPoint around and re-draw Hello World! several times. However I noticed that the window doesn't appear until the drawing is done. Meaning if I loop a million times drawing Hello World! in different places, which may take 60 seconds, I won't see any output until it's completed 60 seconds later. How do I make the window show itself early on so I can see the drawing in progress?