• 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
Subclassing NSLayoutManager for terminal emulator application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSLayoutManager for terminal emulator application?


  • Subject: Subclassing NSLayoutManager for terminal emulator application?
  • From: "Ujwal S. Sathyam" <email@hidden>
  • Date: Wed, 26 Feb 2003 08:22:22 -0800

Hello,

I am developing a terminal emulator that is currently using a standard NSTextView to display the text. However, I have found that speed is degraded particularly as more text is added. The bottleneck seems to be in the NSLayoutManager in laying out the text as more text is added to the NSTextStorage object.

Short of implementing a whole custom view with my own drawRect, is there a way of improving the speed in NSLayoutManager? The stuff in the NSTextStorage object is a bunch of attributed text with line breaks ('\n').
I am currently experimenting with maintaining an array NSMutableSttributedString to represent the lines, and doing my own drawRect, and that seems quite fast, but I was wondering if there was a way of subclassing NSLayoutManager to improve its speed. Also, the application needs to handle non-ascii text and double byte glyphs, so I am a bit hesitant to move away from the NSTextView/NSLayoutManager/NSTextStorage approach.

If I do have to write a custom view, could someone suggest an appropriate approach to doing so?

Thanks,

Ujwal
_______________________________________________
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.

  • Prev by Date: Re: system.preferences Authorization
  • Next by Date: Re: Settings via plist
  • Previous by thread: Re: Why Cocoa (say vs Carbon)
  • Next by thread: initialFirstResponder not working for NSTableView/NSTextView
  • Index(es):
    • Date
    • Thread