Skip navigation.
 
mlRe: override drawRect
FROM : Paolo Costabel
DATE : Thu Nov 18 20:58:10 2004

<email_removed> wrote:

> Is it possible to override an NSView's ( or any of its subclasses)
> "drawRect:" method so that i can flip the coordinate system before its
> called? I want the graphicsContext to  have a coordinate system much
> like that of a QuickDraw CGrafPtr.
>
> thanks
> Alex
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

You can override the isFlipped: method to do that.

--
Get Firefox! <http://www.getfirefox.com>

Related mailsAuthorDate
mloverride drawRect alex Nov 18, 20:50
mlRe: override drawRect Paolo Costabel Nov 18, 20:58
mlRe: override drawRect Ricky Sharp Nov 18, 21:02
mlRe: override drawRect John C. Randolph Nov 19, 00:02
mlRe: override drawRect Wade Tregaskis Nov 19, 10:00