NSView, NSImage, and flipped text?
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.