• 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
NSTextView Text Length
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView Text Length


  • Subject: NSTextView Text Length
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 15 Apr 2014 18:57:58 -0500
  • Thread-topic: NSTextView Text Length

Is there any way to get a notification or set an observer on NSTextView¹s
used text length? After much research, I have not found a way other than to
pole the layout manager for usedRectForTextContainer. This must exist
internally because the textView has to communicate with the containing
scrollView.  I even tried to set an observer on scrollView¹s contentSize, to
no avail. I¹m doing a variable cell-height table view (view based). I have
been able to get the cells to resize when resizing the window, but would
like to have a cell dynamically adjust its height when editing. I can make
it resize on endEditing, but that¹s not quite what I want.

_______________________________________________

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: NSTextView Text Length
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Fast NSArray compare
  • Next by Date: Re: NSTextView Text Length
  • Previous by thread: Re: Fast NSArray compare
  • Next by thread: Re: NSTextView Text Length
  • Index(es):
    • Date
    • Thread