Re: How can I open a new window?
Re: How can I open a new window?
- Subject: Re: How can I open a new window?
- From: Ondra Cada <email@hidden>
- Date: Mon, 1 Apr 2002 00:26:39 +0200
On Sunday, March 31, 2002, at 08:38 , Arthur VIGAN wrote:
I tried to open a new window from a NIB file in my application using
[myWindow setFrame:[myWindow frame] display:YES], as said in the doc
("Opening and closing windows"), but nothing happened.
Where is the mistake?
In your understanding of the docs, I am afraid.
A _new_ window is created as you _load_ the NIB (or if you explicitly use
[[NSWindow alloc] initWith....], which you should forget for now).
The window does exist, but (unless the "visible at launch time", which
actually means "at the NIB load time") is not displayed. You can display
it using
[myWindow orderFront:self];
or, if you want to make the window a first responder, by
[myWindow makeKeyAndOrderFront:self];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.