Window not displaying

I’m trying to create a simple example but I can’t seem to get a window to display. The basic steps i’ve done are:

Create NSApp
Create pixel format
Create view
Create window
NSApp run

Everything ‘works’. Nothing returns an error. The view’s ‘drawRect’ function is called. The menu at the top changes to my application’s. But no window shows up. I’ve been looking for a map/unmap method for the window a-la X & W32 but haven’t found one. ( Is there one? ) That was my only idea …

-makeKeyAndOrderFront:

but I’d suggest using Interface Builder for building your interfaces, it’s much easier

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.