objective c - Redrawing the cocoa app's main window when clicked -


i made mac os x cocoa app, , when click red button main window disappears.

enter image description here

however, when clicked icon in dock, doesn't show main window anymore.

enter image description here

what's wrong? how redraw main window catching message?

you might able in application delegate:

- (bool)applicationshouldopenuntitledfile:(nsapplication *)sender {     //show window here     return no; } 

Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

visual c++ - Using relative values in array sorting ( asm ) -