Problem of positioning a full screen window
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