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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to