Re: NSView not flipping
Re: NSView not flipping
- Subject: Re: NSView not flipping
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 24 Mar 2003 12:37:30 +0100
On Monday, March 24, 2003, at 12:21 PM, <email@hidden> wrote:
I'm pretty sure that flipping the Graphic Context of a view can't
change the way the widgets are located.
Maybe what you can do to find a solution is to overwrite the drawRect:
method of your NSView and NSTextView to draw a red frame instead so
that you can see where the widgets are located.
Well I've already done the next best thing - I colored the scrollview
red.
Thats how I know the NSView and the NSTextView are in the lower-left
corner.
But am I missing the point? Isn't this why you can flip views, so that
their contents are laid out from the top-left corner?
AFAIK, flipping is not going to influence the way the subviews are
located, just the Graphic Context for the view when drawRect: is called.
_______________________________________________
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.