Re: Drawing text?
Re: Drawing text?
- Subject: Re: Drawing text?
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 9 Jul 2002 11:23:36 +0200
On Tuesday, July 9, 2002, at 03:31 AM, Timothy J. Wood wrote:
The simplest way is to use IB and just put a NSTextField where you
want and than call -setStringValue: on it. Another alternative is to
use the methods in <AppKit/NSStringDrawing.h>. There are various other
alternatives with using the window's fieldEditor, using a
NSTextFieldCell, etc, but the first two are certainly the easiest.
The NSStringDrawing method have one bug IIRC, you can't draw a string
with a part of it hidden by the left boundary of the screen.
_______________________________________________
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.