Cannot set an NSWindow's position?

Wevah has the right idea, though I'll try to expand on it a bit. If you were to try adding this line to your initWithWindowNibName: method: NSLog(@"window == %@", self window); You would likely see the following output to console: window == (null) In other words, the window is still nil, as init* methods are so early on in an object's lifetime that many IBOutlets or user interface items aren't quite "hooked up" yet. Sending a message to nil is perfectly fine; it's simply ignored.So, basically your attempt to position the window has no effect because it basically equates to nil doSomething; The key then is to perform the positioning of the window later on in the controller object's lifetime, where the IBOutlets and other user interface objects are properly hooked up.

As Wevah alluded to, one such method where things are properly hooked up is - (void)awakeFromNib; or in the case of NSWindowController, the following one as well: - (void)windowDidLoad; Hope this helps...

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