Avoid moving texture when resizing scrollview
Avoid moving texture when resizing scrollview
- Subject: Avoid moving texture when resizing scrollview
- From: "Simon Strandgaard" <email@hidden>
- Date: Tue, 23 Jan 2007 09:54:17 +0100
When resizing the scrollview then the osx-grey-striped-texture moves,
as if the origin is in the left/bottom corner. The view already has
flipped coordinates.
how do I change the origin to the left/top corner?
Implementation Details
I have a custom nsview inside a scrollview, that can hold a variable
number of controls. This custom nsview does not implement drawRect.
The controls have different sizes, and I programmatically assign
frame rects. I use -(BOOL)isFlipped { return YES; }, so that controls
can be added top-down while keeping track of the y-position.
--
Simon Strandgaard
http://opcoders.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden