• 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
Problem of positioning a full screen window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem of positioning a full screen window


  • Subject: Problem of positioning a full screen window
  • From: email@hidden
  • Date: Tue, 22 Jan 2002 09:19:44 -0700

Hello, all,
I have a strange problem with positioning of a window.

I need a full screen window which will cover the whole screen. If I design this window in MainMenu.nib, it works well. But if I design it in another nib file with a NSWindowController's subclass, and invoke it with
[[myWindowController alloc] initWithWindowNibName:@"..."];
[myWindowController showWindow:self];
When the window is big enough(nearly the full screen window) it will always put the window with the same top left point(seem as (10, 4) other than the top left point of the screen) no matter where I put the window while designing. (If the window is not very big, there's no such problem).

I also design a small window, and resize it use
[self setFrame:[[self screen] frame] display:YES];
it works if the window is in MainMenu.nib, and has the same problem when it is put in another nib file. Even if I set the origin of the window to (-20, -10), the window's origin point didn't change.

I wonder if I do something wrong or it's a bug?

Thanks for any information!

Fei


  • Follow-Ups:
    • app preferences top view
      • From: "Mathieu Routhier" <email@hidden>
  • Prev by Date: Re: Apple Serial Number: Redux
  • Next by Date: app preferences top view
  • Previous by thread: Feature request (was: SIGBUS and NSLog)
  • Next by thread: app preferences top view
  • Index(es):
    • Date
    • Thread