Max Width of a RTF text
Max Width of a RTF text
- Subject: Max Width of a RTF text
- From: Lorenzo <email@hidden>
- Date: Fri, 07 May 2004 00:22:51 +0200
Hi,
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.
Is a way to do that?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.