Currently I have an NSImageView as a subview of a NSScrollView in my window. What I would like is instead of the ImageView being positioned at the bottom-left of the ScrollView's ContentView, I want it positioned in the top-left corner.
Should this be as easy as subclassing NSScrollView and overriding it's isFlipped: method? Or is there some other, more complex task that needs to be done. I've tried just reposition the ImageView frame offset from the bottom, but no matter what I make it's Rect.Origin set to, it doesn't change it's position.
Maybe I've missed something obvious? I find this frustrating seeing as how my program works fine otherwise: toolbars, draws, multi-threading, etc... but I can't figure out how to reposition the ImageView.
Any help would be appreciated.
Relevant header vars in MyWindowController.h, a subclass of NSWindowController that is the owner and delegate of my NSWindow:
Should this be as easy as subclassing NSScrollView and overriding it's isFlipped: method? Or is there some other, more complex task that needs to be done. I've tried just reposition the ImageView frame offset from the bottom, but no matter what I make it's Rect.Origin set to, it doesn't change it's position.
Maybe I've missed something obvious? I find this frustrating seeing as how my program works fine otherwise: toolbars, draws, multi-threading, etc... but I can't figure out how to reposition the ImageView.
Any help would be appreciated.
Relevant header vars in MyWindowController.h, a subclass of NSWindowController that is the owner and delegate of my NSWindow:
Code:
IBOutlet NSImageView * imageView;
IBOutlet NSScrollView * scrollView;
/* [super window] points to the NSWindow */