Re: Variable window size based on screen resolution
Re: Variable window size based on screen resolution
- Subject: Re: Variable window size based on screen resolution
- From: Richard Somers <email@hidden>
- Date: Mon, 14 Nov 2011 08:18:56 -0700
One way would be to subclass NSWindow and override the designated initializer -initWithContentRect:styleMask:backing:defer: method. In the initializer you could query the screen resolution and set the window frame accordingly.
--Richard
On Nov 14, 2011, at 8:10 AM, Koen van der Drift wrote:
> Is there a way to a window open in a size relative to the resolution
> of the screen?
_______________________________________________
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