• 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
Making a window fit its contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making a window fit its contents?


  • Subject: Making a window fit its contents?
  • From: Jack Repenning <email@hidden>
  • Date: Sun, 30 Mar 2008 23:06:17 -0700

How can I [someNSTextField setStringValue:someString] (to some value I only learn at run time), and then resize the window that contains it so the string is visible? Or, is there something I can set in Interface Builder that will make this resize happen automatically?

I found a sizeToFit in the NSTextField, but not on the surrounding NSWindow or NSView.

-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: +1 877.326.2337, x844.7461
aim: jackrepenning
skype: jackrepenning





_______________________________________________

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: Making a window fit its contents?
      • From: Nick Toumpelis <email@hidden>
  • Prev by Date: Trying to contact Cathy Shive (again)
  • Next by Date: Modify Input in NSTableView
  • Previous by thread: Trying to contact Cathy Shive (again)
  • Next by thread: Re: Making a window fit its contents?
  • Index(es):
    • Date
    • Thread