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

Re: Making a window fit its contents?


  • Subject: Re: Making a window fit its contents?
  • From: Jack Repenning <email@hidden>
  • Date: Wed, 2 Apr 2008 19:06:17 -0700

On Mar 31, 2008, at 1:33 AM, Nick Toumpelis wrote:

the most effective way to do this is by using Jerry Krinock's NS(Attributed)String+Geometrics categories [1]. Using this, you can determine the height or width of your text and size your window (and NSTextField) appropriately.

[1] http://sheepsystems.com/sourceCode

That is so unbeLIEVably cool! Works perfectly, only took about five minutes to grok and use.


-==-
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


  • Prev by Date: Auto-resizing column based on the data inside it?
  • Next by Date: RE: DataSource for NSTableView with ButtonCell
  • Previous by thread: Re: Auto-resizing column based on the data inside it?
  • Next by thread: duplicate symbol error
  • Index(es):
    • Date
    • Thread