• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: align subview of scrollview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >align subview of scrollview (From: 김경옥 <email@hidden>)

  • Prev by Date: Re: Unicode replaceOccuranceOfString?
  • Next by Date: Re: Rotations
  • Previous by thread: align subview of scrollview
  • Next by thread: Still can't get NSArrayController to work!
  • Index(es):
    • Date
    • Thread