apps-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANN: CodeEditor 0.3.8


From: Yen-Ju Chen
Subject: Re: ANN: CodeEditor 0.3.8
Date: Thu, 24 Apr 2003 13:40:18 -0400

Thanx for the hint.
Cocoa's document say the -beginEditing and -endEditing is for the
*subclass* of NSMutableAttributedString.
And I didn't use subclass of NSMutableAttributedString,
but call -setAttributes directly.
Is subclassing NSMutableAttributedString better than
calling -setAttributes outside for speed ?

And actually I didn't change the attributes too much for
block marking and indentation.
One is changing the background of two characters,
another is inserting either "\t" or several spaces.

Yen-Ju

From: Alexander Malmberg <address@hidden>
To: address@hidden
Subject: Re: ANN: CodeEditor 0.3.8
Date: Wed, 23 Apr 2003 22:29:47 +0200


I haven't looked at your code, but if you're making many changes
programmatically in one go, you should enclose all changes in calls to
-beginEditing and -endEditing on the text storage. The text system will
then perform invalidation and rebuilding and such once for all changes,
instead of doing it for each individual change.

- Alexander Malmberg


_______________________________________________
Apps-gnustep mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/apps-gnustep


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]