• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Max Width of a RTF text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Max Width of a RTF text (From: Lorenzo <email@hidden>)

  • Prev by Date: Bundling frameworks within app bundle
  • Next by Date: Re: The Cell from Hell (TM)
  • Previous by thread: Max Width of a RTF text
  • Next by thread: Memory management (release)
  • Index(es):
    • Date
    • Thread