Re: NSView Text Paint inversed

2008-05-21 Thread Jere Gmail
Hi, I finally solved the issue. I was using the CGContextShowTextAtPoint and CGAffineTransformMakeRotation to draw it correctly. Due to some problem (I created :P ) the previous state of the context was stored and then the rotations where concatenated, so the text was fliping in each redraw. Now i

Re: NSView Text Paint inversed

2008-05-20 Thread Graham Cox
Post your drawing code. Inverted text isn't too uncommon, as text expects to be drawn into a flipped context. For a view, it should work whether you are flipped or not, but if you are drawing in some unusual way you might be confusing it. G. On 21 May 2008, at 1:40 am, Jere Gmail wrote:

Re: NSView Text Paint inversed

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:40 AM, Jere Gmail wrote: Hi. I have an NSView where I paint some text and paths. The paths are drawn ok, but when I resize the window, sometimes the text is written upside down. Anyone knows why? How are you drawing the text? Nick Zitzmann