Expanding NSScrollView
Expanding NSScrollView
- Subject: Expanding NSScrollView
- From: Andrew Shamel <email@hidden>
- Date: Tue, 21 Jul 2009 11:55:51 -0700
Hi All,
I've dug around through the archives, but couldn't turn anything up
that addresses this question, so I turn to the collective wisdom of
the list.
I'm trying to figure out how to create an NSScrollView subclass that
expands vertically rather than scrolling, up to a certain height. For
instance, a scrollview containing an NSTextView would expand itself
when the textview exceeded the visible rect, until the textview
reached a certain length, at which point normal scrolling behavior
would commence. Likewise, it would shrink back along the same
parameters.
I am imagining that this might have something to do with the ClipView,
but I may be way off. Alternatively a scrollViewShouldScroll:
delegate method would be convenient at this point.
If that wasn't coherent, or if anyone has any ideas, I would be
sincerely grateful.
Peace,
Andy Shamel
_______________________________________________
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