• 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: Flipping Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flipping Text


  • Subject: Re: Flipping Text
  • From: Dave Fernandes <email@hidden>
  • Date: Tue, 30 Jan 2007 15:32:36 -0500


On Jan 30, 2007, at 2:37 PM, Jim Correia wrote:

On Jan 30, 2007, at 2:30 PM, Dave Fernandes wrote:

Yes, using an NSAffineTransform correctly flips any graphics you draw. However, text rendering ignores this transform. It renders (in my app) upside down whether or not I use the transform.

Here is a simplification of my code (without the transform) for my custom NSView.

By removing the code which applies the transform, you've made it impossible for us to see why your text isn't flipped.

Good point.


Do you realize that when you lock focus on the offscreen image, your are now drawing in a new context?

No, I didn't realize that.

If you are concatenating a transform before locking focus on the image, you are applying the transform to the wrong context.

Doh! OK, now I get it. Problem solved. Thank you.

- Dave


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Flipping Text (From: Matt Neuburg <email@hidden>)
 >Re: Flipping Text (From: Dave Fernandes <email@hidden>)
 >Re: Flipping Text (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: How to clear text of an NSTextView
  • Next by Date: Re: Setting NSDatePicker to display 24-hour time
  • Previous by thread: Re: Flipping Text
  • Next by thread: Trouble centering window after mode switch
  • Index(es):
    • Date
    • Thread