How do I open an NSWindow and have the window selected and in focus?

MakeKeyAndOrderFront: is the way to go. Are you sure that self. Window and window refer the same object?

Thanks but it still doesn't work. I added the window makeKeyAndOrderFront:self; call straight after the showWindow: and it still doesn't work. Should I be calling this somewhere else?

– Luke May 12 '10 at 10:39 makeKeyAndOrderFront: is the right method. It shouldn't matter where you call it. Something else is the problem.

For instance, the main window might be modal, or something is refusing to give up first responder status. – Tom Dalling May 12 '10 at 12:05 Yes, there was a problem within the nib, see my answer for the solution. – Luke May 12 '10 at 15:25 Thanks you for your help!

– Luke May 12 '10 at 16:04 This worked fine along with showWindow: once the nib was setup correctly. – Luke May 12 '10 at 2:34.

I resolved the issue by assigning the WindowController to the nib File Owner, instead of having a separate NSWindowController object within the nib.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions