• 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: NSTextView How do you turn off line wrap?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView How do you turn off line wrap?


  • Subject: Re: NSTextView How do you turn off line wrap?
  • From: Satoshi Matsumoto <email@hidden>
  • Date: Sun, 18 Jan 2004 12:48:18 +0900

Hi,

on 04.1.18 9:09 AM, Bob Foster at email@hidden wrote:
> I am sure this must be a FAQ and my apologies.
> How do you turn off line wrap in an NSTextView?

Set the witdh of the textContainer to a large value like follows.

textContainer = [textView textContainer];
theSize = [textContainer containerSize];
theSize.width = 1.0e7;
[textContainer setContainerSize:theSize];
[textContainer setWidthTracksTextView:NO];

> And where is there decent documentation?

http://developer.apple.com/documentation/Cocoa/Conceptual/TextStorageLayer/

Satoshi

-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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: 
 >NSTextView How do you turn off line wrap? (From: Bob Foster <email@hidden>)

  • Prev by Date: Broken action
  • Next by Date: [ANN] Graphviz 1.10 (v2) for Mac OS X, beta test
  • Previous by thread: NSTextView How do you turn off line wrap?
  • Next by thread: Re: NSTextView How do you turn off line wrap?
  • Index(es):
    • Date
    • Thread