I have an app that contains a scrollview and buttons in it and as u know on mac when u build the scroll view it always starts on the button so i had to flip it then i made a button that is supposed to reset it so every time i click it the scroll view goes to the top but the problem is it keeps going to the bottom instead because its reversed is there a way i can make it reset to the top
i used this code to flip it
flipped view.h
Code:
NSPoint pt = NSMakePoint(0.0, [[ConverterScrollView1 documentView]
bounds].size.height);
[[ConverterScrollView1 documentView] scrollPoint:pt];
i used this code to flip it
flipped view.h
Code:
- (id)initWithFrame:(NSRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code here.
}
return self;
}
- (void)drawRect:(NSRect)dirtyRect
{
[super drawRect:dirtyRect];
// Drawing code here.
}
-(BOOL)isFlipped {
return YES;
}