Re: Making a window fit its contents?
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