Re: NSWindow display?
Re: NSWindow display?
- Subject: Re: NSWindow display?
- From: j o a r <email@hidden>
- Date: Mon, 19 Apr 2004 21:04:15 +0200
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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.