Re: NSTextView resizeability and scrolling
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