Re: ANN: CodeEditor 0.3.8
"Yen-Ju Chen" <[email protected]> Thu, 24 Apr 2003 13:40:18 -0400
| Newsgroups | gmane.comp.lib.gnustep.applications |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> >To: [email protected] >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 >[email protected] >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