• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I open a new window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Next by Date: Re: StartupItem info: Laptop Network Starting
  • Next by thread: Re: StartupItem info: Laptop Network Starting
  • Index(es):
    • Date
    • Thread