Re: Scroll position of a NSTextView
Re: Scroll position of a NSTextView
- Subject: Re: Scroll position of a NSTextView
- From: j o a r <email@hidden>
- Date: Wed, 3 Sep 2003 21:54:45 +0200
Just want to point out that there is a method available to find the
enclosing scroll view of any view (i.e. you don't have to keep in mind
if it's a direct superview or not):
- (NSScrollView *) enclosingScrollView
So, the previous code snippet could then be:
float scrollerPosition = [[[textView enclosingScrollView]
verticalScroller] floatValue];
j o a r
On 2003-sep-03, at 20:49, Andreas Mayer wrote:
float scrollerPosition = [[[textView superview] verticalScroller]
floatValue];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.