• 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
NSTextView selection, lines being CR'd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView selection, lines being CR'd


  • Subject: NSTextView selection, lines being CR'd
  • From: Michael Hanna <email@hidden>
  • Date: Tue, 9 Nov 2004 16:47:27 -0500

In TextEdit when you select text, the selection extends out to the scrollbar. I noticed that it's a subclass of NSScrollView(ScalingScrollView) but in my app I use an NSTextView, and the width of the selection is somehow related to the width of the font. This is a problem when reading in text files with wide lines since they are CR'd to the next line.

I built the text system by hand, such that it is like figure 4 in:

file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/TextArchitecture/Concepts/CommonConfigs.html

How do I extend it in the same way, or at least ensure that lines don't CR prematurely?

Michael

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Cocoa speech in java
  • Next by Date: Re: Filtering out all invisible files in a file system browser
  • Previous by thread: Cocoa speech in java
  • Next by thread: Missing Scroller in NSTableView
  • Index(es):
    • Date
    • Thread