I'm new to programming desktop applications for Mac (though a have a small experience with programming for IPhone).
Suppose I create a new Cocoa project in XCode. This application does nothing just shows its window. I click on the cross in the red circle and my app minimizes to the dock and it has a blue dot on its icon showing that it's running.
Why when I click on its dock icon it doesnt restore? The same thing happens with Java swing application created by Xcode's "new project" wizard.
What should add to an application so that it would restore itself when I click on its icon in the dock?
thanks