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

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.

  • Prev by Date: left-shift vs. right-shift
  • Next by Date: How do I open an NSDrawer in awakeFromNib?
  • Previous by thread: Re: Problem of positioning a full screen window
  • Next by thread: Resetting "Factory" Prefs
  • Index(es):
    • Date
    • Thread