Re: NSView coordinate System
Re: NSView coordinate System
- Subject: Re: NSView coordinate System
- From: jean Bousquet <email@hidden>
- Date: Fri, 20 Sep 2002 14:19:57 +0200
le 20/09/2002 13:02, email@hidden `
email@hidden a icrit :
>
Hi,
>
I am wanting to get the coordinate system of an NSView to be that (0,0)
>
is in the top left corner. In my subclass i have isFlipped return YES,
>
but all that does is draw the image upside down. I could not find any
>
other info in the docs.
>
>
How do I get the (0,0) to be in the top left hand corner of the view?
>
>
TIA,
>
Greg
isFlipped=YES works for me but I draw only rectangles, lines and text.
Warning : in this case y direction is toward bottom.
If you want to translate origin keeping y direction toward up, try
translateOrigin or setOrigin.
Jean
_______________________________________________
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.