NSTextView vs NSScrollView problem
NSTextView vs NSScrollView problem
- Subject: NSTextView vs NSScrollView problem
- From: Mark Alldritt <email@hidden>
- Date: Tue, 09 Jan 2007 14:49:24 -0800
- Thread-topic: NSTextView vs NSScrollView problem
Hi All,
I have an NSTextView embedded in an NSScrollView, but I only want to scroll
horizontally. When the height of the text view changes, I want to
increase/decrease the height of the enclosing NSScrollView. As a result, I
don't have a v-scrollbar in the NSScrollView.
I am listening to the NSTextView for the NSViewFrameDidChangeNotificaiton
notification, and I'm receiving notifications when the height of the view
increases, but I'm not getting the notification when the height decreases.
Interestingly, if I don't embed the NSTextView in a NSScrollView I get all
the notifications.
Does anyone have any ideas?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 4.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.3 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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