Centering text drawn to screen
Centering text drawn to screen
- Subject: Centering text drawn to screen
- From: Ryan McPherson <email@hidden>
- Date: Thu, 13 Jun 2002 12:54:16 -0700
Hello,
I am writing a screensaver that flashes text on the screen using NSString's
drawInRect:withAttributes: method. I have been successful so far, but the
text is drawn left-adjusted to the rectangle I'm drawing in and I want it to
be centered. I couldn't find an attribute that handles this in the
documentation.
Any suggestions?
Thanks in advance!
-Ryan
_______________________________________________
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.