• 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: NSTextView resizeability and scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView resizeability and scrolling


  • Subject: Re: NSTextView resizeability and scrolling
  • From: Ross Carter <email@hidden>
  • Date: Wed, 09 Sep 2009 13:15:35 -0400

I've googled for a solution, found nothing. I tried making it by observing the NSViewFrameChangedNotification of the NSTextView from it's parent, and resizing, but this is more tricky then I imagined.

I think you are on the right track. You might want to look at these threads:
http://www.cocoabuilder.com/archive/message/cocoa/2009/4/24/235290
http://www.cocoabuilder.com/archive/message/cocoa/2009/3/16/232453


As as side question, it seems that an NSTextView has some margins that separate the text from it's outer edges. This makes sense when the NSTextView is in an NSScrollView, but makes it difficult to align the text view when it is not. I can't find any documented API on controlling this. Is it possible?

I think you want to look at setLineFragmentPadding: in NSTextContainer.

_______________________________________________

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 resizeability and scrolling
      • From: Stamenkovic Florijan <email@hidden>
References: 
 >NSTextView resizeability and scrolling (From: Stamenkovic Florijan <email@hidden>)

  • Prev by Date: Re: Does Mac OS X support interior pointers?
  • Next by Date: Re: NSUserDefaults synchronization in Foundation tools
  • Previous by thread: NSTextView resizeability and scrolling
  • Next by thread: Re: NSTextView resizeability and scrolling
  • Index(es):
    • Date
    • Thread