Re: Problem of positioning a full screen window
Re: Problem of positioning a full screen window
- Subject: Re: Problem of positioning a full screen window
- From: email@hidden
- Date: Thu, 7 Feb 2002 16:00:29 -0700
Thank very much for John and Matt's response.
I finally solve the problem by add a method in MyWindowController:
-(void)showMyWindow
{
[[self window] setFrameTopLeftPoint: NSMakePoint(0,[[[self window]
screen]frame].size.height)];
[self showWindow: self];
[[self window] makeKeyAndOrderFront: self];
}
And call this method after creation of MyWindowController. There will be
a flash, but the window can cover the whole screen. I don't know why
this makes difference, but solve it anyway.
Thanks again for giving me a lot of hints about this!
Fei
_______________________________________________
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.