I've got an app that I've created in Xcode. It's not document based.
How do I make it so that when the user clicks on say, the dock icon, the window reopens? I'm creating everything out the nib that Xcode automagically gave me.
I've tried to implement applicationShouldOpenUntitledFile:
and calling makeKeyAndVisible
on my app delegate's window
property, but that messes with the app's icon. (I guess that has to do with icons serving as document previews.)
Regardless, I've googled a bit, and mostly found references to Carbon APIs, or document based apps.
How does the window creation process work between NSApplicationMain and my app's nib file, how can I replicate that process, and where can I do so?