• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView Text Paint inversed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSView Text Paint inversed (From: "Jere Gmail" <email@hidden>)
 >Re: NSView Text Paint inversed (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: NSTextView embedded audio/video not loading
  • Previous by thread: Re: NSView Text Paint inversed
  • Next by thread: NSViewController and Nib files
  • Index(es):
    • Date
    • Thread