Re: NSWindow display?
Re: NSWindow display?
- Subject: Re: NSWindow display?
- From: "David Piasecki" <email@hidden>
- Date: Mon, 19 Apr 2004 12:24:28 -0700
Well, not a misspelling, but I didn't realize it took nil. It works now.
Thanks,
David
On Apr 19, 2004, at 12:04 PM, j o a r wrote:
You need to differentiate between moving a window on screen, and
telling it that it needs to redisplay. The first two methods you list
are of the second type, and not what you need. The third one is not a
method of NSWindow, so I don't know why you would use that. The last
one would have worked if you had spelled the selector correctly:
[newWindow makeKeyAndOrderFront: nil];
j o a r
On 2004-04-19, at 20.26, David Piasecki wrote:
This has got to be a dumb question, but how do you display a new
NSWindow in Cocoa? I created a new NSWindow in IB, I created an
outlet for the window in my main window's controller class, and I
created an action to open the new window when I click on a button. I
tried the following...
[newWindow display]
[newWindow setNeedsDisplay:true]
[newWindow showWindow]
[newWindow makeKeyAndOrderFront]
But none of that seems to work. This is obviously really basic. I'm
just missing something and can't seem to find it in the
documentation.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.