Re: NSView Text Paint inversed
Re: NSView Text Paint inversed
- Subject: Re: NSView Text Paint inversed
- From: "Jere Gmail" <email@hidden>
- Date: Wed, 21 May 2008 09:32:18 +0200
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 it's solved. Thanks.
On Wed, May 21, 2008 at 1:34 AM, Graham Cox <email@hidden> wrote:
> 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:
>
>> 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?
>> Thanks.
>> --
>> http://zon7blog.wordpress.com/
>> And again we fall.
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
--
http://zon7blog.wordpress.com/
And again we fall.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden