• 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: Trouble finding bounding rect of NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Trouble finding bounding rect of NSAttributedString
      • From: Jens Alfke <email@hidden>
References: 
 >Trouble finding bounding rect of NSAttributedString (From: Dave DeLong <email@hidden>)
 >Re: Trouble finding bounding rect of NSAttributedString (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Trouble finding bounding rect of NSAttributedString
  • Next by Date: Authorization plugin samples
  • Previous by thread: Re: Trouble finding bounding rect of NSAttributedString
  • Next by thread: Re: Trouble finding bounding rect of NSAttributedString
  • Index(es):
    • Date
    • Thread