• 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: Help: Non-wrapping NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: Non-wrapping NSTextView


  • Subject: Re: Help: Non-wrapping NSTextView
  • From: Jérôme Laurens <email@hidden>
  • Date: Sat, 21 Dec 2002 11:12:39 +0100

Le samedi, 21 dic 2002, ` 10:55 Europe/Zurich, Timothy Mowlem a icrit :

> Hello,
>
> I am trying to write a simple text editor for editing, e.g. source
> code, to improve
> my understanding of Cocoa.
>
> Please can someone tell me if it's possible to make an NSTextView not
> wrap
> horizontally, and if so how you do it?
>
>

tell the NSTextContainer associated to the text view not to track the
width

- (void)setWidthTracksTextView:(BOOL)flag

and set the size to big things (1e7)

- (void)setContainerSize:(NSSize)aSize
_______________________________________________
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: 
 >Help: Non-wrapping NSTextView (From: Timothy Mowlem <email@hidden>)

  • Prev by Date: Help: Non-wrapping NSTextView
  • Next by Date: Re: Finding Applications for File Type
  • Previous by thread: Help: Non-wrapping NSTextView
  • Next by thread: Re: Help: Non-wrapping NSTextView
  • Index(es):
    • Date
    • Thread