Re: View system usage with lower left origin (corrected)
Re: View system usage with lower left origin (corrected)
- Subject: Re: View system usage with lower left origin (corrected)
- From: Quentin Mathé <email@hidden>
- Date: Sat, 14 Jun 2003 10:42:45 +0200
Le samedi, 14 juin 2003, ` 10:20 Europe/Paris, Quentin Mathi a icrit :
The simplest solution is to flip the embedded views coordinates, it is
possible to do it by using a subclassed NSView which implements the
following method :
- (BOOL)isFlipped {
return YES;
}
Then the thing to do is to have the subclassed NSView to be the
embedded views class.
With the flipped views, the coordinates are top left based for these
views, no more bottom left based then it's easier, especially if you
need to resize your embedded views on the fly.
you should read :
The simplest solution is to flip the container view coordinates, it is
possible to do it by using a subclassed NSView which implements the
following method :
- (BOOL)isFlipped {
return YES;
}
Then the thing to do is to have the subclassed NSView to be the
containiner view class.
With the flipped view, the coordinates are top left based for the
drawing inside it (which include in this case the embedded views
positionning), no more bottom left based... then it's easier,
especially if you need to resize your embedded views on the fly.
... sorry, I was still somnolent when I wrote the previous message.
--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.