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

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

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -