Re: Max Width of a RTF text
Re: Max Width of a RTF text
- Subject: Re: Max Width of a RTF text
- From: Fritz Anderson <email@hidden>
- Date: Fri, 7 May 2004 11:47:03 -0500
What happens when you send
[textView setHorizontallyResizable: YES];
before reading the RTF file?
-- F
On 6 May 2004, at 5:22 PM, Lorenzo wrote:
I import a RTF file into a NSTextView giving an arbitrary initial
frame.
NSTextView *textView = [[NSTextView alloc] initWithFrame:theFrame];
[textView setRichText:YES];
[textView readRTFDFromFile:filePath];
but now, how can I set the textView size in order to show the real
width
of the original text file? I noted that in TextEdit I can even format
the
text page to 10 cm large, so I would like to set the size of the
textView to
show 10 cm of text (width). No more, no less.
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.