• 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
setting minimum size for NSView to display all content without scroll view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting minimum size for NSView to display all content without scroll view


  • Subject: setting minimum size for NSView to display all content without scroll view
  • From: Warwick Hall <email@hidden>
  • Date: Fri, 27 Apr 2007 18:11:04 +1000

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
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: setting minimum size for NSView to display all content without scroll view
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Implementing Table Selection Support for Custom Controller?
  • Next by Date: Re: NSArray - waste of time?
  • Previous by thread: drawing red text for some cells while editting in NSTableView
  • Next by thread: Re: setting minimum size for NSView to display all content without scroll view
  • Index(es):
    • Date
    • Thread