• 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
NSView, NSImage, and flipped text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView, NSImage, and flipped text?


  • Subject: NSView, NSImage, and flipped text?
  • From: Steve Mykytyn <email@hidden>
  • Date: Mon, 12 May 2003 11:19:48 -0700

I'm trying to figure out how I can flip the coordinates in my main subclass of NSView, without causing text to be flipped upside down in NSImages into which I draw some graphics and text and then composite into the NSView subclass.


Right now, the behaviors i get are:

NSView subclass -isFlipped returns YES - graphics and text are inverted

NSView subclass -isFlipped returns NO, AND NSImage gets -setFlipped:YES - graphics inverted, text is not

NSView subclass -isFlipped returns YES, AND NSImage gets -setFlipped:YES

- graphics are right-side up, text is inverted


The -lockFocus calls are nested - the subclass of NSView gets one first, then each of the NSImages get a -lockFocus ... draw some graphics and text -unlockFocus sequence.

any suggestions on getting the behavior I want?
_______________________________________________
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.

  • Prev by Date: Serial device driver
  • Next by Date: Re: self release
  • Previous by thread: Re: Serial device driver
  • Next by thread: NSOpenPanel ignoring its directory.
  • Index(es):
    • Date
    • Thread