Skip navigation.
 
mlsetting minimum size for NSView to display all content without scroll view
FROM : Warwick Hall
DATE : Fri Apr 27 10:11:04 2007

hello all,

can someone please explain to me how to set a view's minimum required 
size (bounds) to display all its contents?

currently, i am trying to create an NSView for printing, and am 
setting the size of the bounds to 500 x 10000, but that makes for a 
lot of wasted paper! help me save the planet! say no to wasting paper 
and tell me what i am missing.

i notice that NSWindow has a contentMinSize message, but it always 
returns {0, 0}! for you Java developers I need a Frame.pack() type of 
method, but i cannot find one anywhere.

warwick

Related mailsAuthorDate
mlsetting minimum size for NSView to display all content without scroll view Warwick Hall Apr 27, 10:11
mlRe: setting minimum size for NSView to display all content without scroll view I. Savant Apr 27, 12:44
mlRe: setting minimum size for NSView to display all content without scroll view Warwick Hall Apr 28, 22:45
mlRe: setting minimum size for NSView to display all content without scroll view I. Savant Apr 28, 22:49
mlRe: setting minimum size for NSView to display all content without scroll view Warwick Hall Apr 29, 06:22
mlRe: setting minimum size for NSView to display all content without scroll view Shamyl Zakariya Apr 30, 23:35