• 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 to create a new window initially zoomed to the maximal size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a new window initially zoomed to the maximal size?


  • Subject: Re: How to create a new window initially zoomed to the maximal size?
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Sat, 20 Sep 2008 14:11:05 -0400
  • Mail-followup-to: Benjamin Stiglitz <email@hidden>, email@hidden

> What I want to achieve is that when a new window is created, it has
> the maximal size allowed by the screen, menu and the dock, exactly
> like if someone clicked the green zoom button in the window's title
> bar. I don't want any resizing animation or flickering though.

Before ordering the window onto the screen, you can set its frame to
fill the screen by calling -[NSWindow zoom:]. Alternatively, you can set
its frame to [[window screen] defaultFrame], which is the same frame
that -zoom: will use, subtracting space for any visible drawers.

-Ben
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to create a new window initially zoomed to the maximal size?
      • From: j o a r <email@hidden>
References: 
 >How to create a new window initially zoomed to the maximal size? (From: "Oleg Krupnov" <email@hidden>)

  • Prev by Date: How to create a new window initially zoomed to the maximal size?
  • Next by Date: Re: How to create a new window initially zoomed to the maximal size?
  • Previous by thread: How to create a new window initially zoomed to the maximal size?
  • Next by thread: Re: How to create a new window initially zoomed to the maximal size?
  • Index(es):
    • Date
    • Thread