Re: NSTextView/Storage Fast deletion?
Re: NSTextView/Storage Fast deletion?
- Subject: Re: NSTextView/Storage Fast deletion?
- From: Max Horn <email@hidden>
- Date: Sun, 18 Nov 2001 13:59:26 +0100
Terminal.app uses its own special subclass of NSView, not NSTextView.
You are cutting arbitrary charachters, and NSTextView is a general
class, these two things cause your problems.
I.e. when you remove the chars, the view has to complelty recalculate
the layout of all chars, causing a major performance loss. Also, most
terminals are happy with monospaced ("fixed") fonts, while NSTextView
has to be general enough to deal with all fonts.
You might want to do the same and write your own special NSView for
optimal speed.
Max
--
-----------------------------------------------
Max Horn
Software Developer
email: <
mailto:email@hidden>
phone: (+49) 6151-494890