Re: Trouble finding bounding rect of NSAttributedString
Re: Trouble finding bounding rect of NSAttributedString
- Subject: Re: Trouble finding bounding rect of NSAttributedString
- From: Dave DeLong <email@hidden>
- Date: Thu, 19 Nov 2009 15:39:09 -0700
Good point.
When I print out the size or rect that these return, I invariably get either {0, 0} or something absurd like {{1.17076e-318, 2.29357e-314}, {2.30359e-314, 2.1224e-314}} (that's just running the rect through NSStringFromRect())
Dave
On Nov 19, 2009, at 3:37 PM, Jens Alfke wrote:
>
> On Nov 19, 2009, at 1:28 PM, Dave DeLong wrote:
>
>> I have an NSTextView that I need to resize dynamically. NSTextView appears to resize itself as I add text, but I also need it to shrink itself as I delete text. Here's what I've tried:
>
> Several of those look like reasonable calls for this purpose. You didn't specify what went wrong when you called them ... ?
>
> —Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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