bug-gnustep
[Top][All Lists]
Advanced

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

Re: GSTextStorage vs GSMutableAttributedString


From: Fred Kiefer
Subject: Re: GSTextStorage vs GSMutableAttributedString
Date: Sat, 18 May 2002 17:45:05 +0200

Adam Fedor wrote:
> GSTextStorage is almost an exact copy of
> GSMutableAttributedString/GSAttributedString.
> 
> I think it would be easier if we just used behaviors to add that
> functionality to GSTextStorage. The only problem is that GSTextStorage
> uses an extra call in some routines:
> 
> - (void) edited: (unsigned)mask range: (NSRange)old changeInLength:
> (int)delta;
> 
> But perhaps we could just put a dummy implementation of that in
> GSMutableAttributedString. Does this sound ok?

What I also don't like about the current situation is that every
correction to the mechanism of this classes has to be applied to both
separately. But I think we should be a bit more careful here than just
replace one by the other. We still want to be able to use GNUstep GUI
with other foundation libraries than base, although currently nobody
uses any of these combinations. When a class in GUI (NSTextStorage) is
directly dependent on a class in base (GSMutableAttributedString) we
cannot easily replace this.



reply via email to

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