Re: align subview of scrollview
Re: align subview of scrollview
- Subject: Re: align subview of scrollview
- From: Yann Bizeul <email@hidden>
- Date: Sun, 19 Sep 2004 11:53:29 +0200
Here is a category I use. I send this message to the scrollView's
documentView.
Is there any way to align the custom view who is a subview of
scrollview in upper left area in Interface Builder?
Otherwise let me know how to realign it in code.
@implementation NSView (scrolling)
- (void)scrollToTop
{
[self scrollPoint:NSMakePoint(0,NSHeight([self
frame])-NSHeight([[self superview]frame]))];
}
@end
There could be a more efficient way :-/
--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden