Skip navigation.
 
mlRe: Copying NSTextStorage
FROM : Sherm Pendley
DATE : Wed Jun 04 10:14:12 2008

On Tue, Jun 3, 2008 at 12:51 PM, Kyle Sluder
<kyle.sluder+<email_removed>> wrote:
> On Tue, Jun 3, 2008 at 11:15 AM, Gordon Apple <<email_removed>> wrote:

>>    I tried exactly that.  It did nothing but a horrendous crash when I
>> tried to type text.  I couldn't even trace it.  I never even got to the copy
>> part.  I got the same result with a totally empty subclass. Shouldn't it
>> have worked the same?s What gives with that?

>
> It might have something to do with the fact that, according to the
> documentation, NSTextStorage is a "semiconcrete subclass of
> NSMutableAttributedString."  What confuses me about this is that the
> words "concrete" and "abstract" have very well-defined meanings...
> "semiconcrete" is bizarre and meaningless.  Doesn't that just mean
> it's abstract?


I interpret it as meaning that NSTextStorage is concrete in the sense
that you can instantiate it directly. But, you can't inherit its
implementations of NSMutableAtributedString's primitive methods; so,
when subclassing NSTextStorage it's considered an abstract superclass
that requires you to implement the primitive methods.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net

Related mailsAuthorDate
mlCopying NSTextStorage Gordon Apple May 29, 20:03
mlRe: Copying NSTextStorage Jens Alfke May 30, 06:53
mlRe: Copying NSTextStorage Gordon Apple May 30, 17:13
mlRe: Copying NSTextStorage Kyle Sluder May 30, 22:16
mlRe: Copying NSTextStorage Gordon Apple Jun 1, 01:49
mlRe: Copying NSTextStorage Ross Carter Jun 1, 17:59
mlRe: Copying NSTextStorage Gordon Apple Jun 3, 17:15
mlRe: Copying NSTextStorage Kyle Sluder Jun 3, 18:51
mlRe: Copying NSTextStorage Ross Carter Jun 3, 20:19
mlRe: Copying NSTextStorage Kyle Sluder Jun 3, 22:21
mlRe: Copying NSTextStorage Alastair Houghton Jun 4, 00:09
mlRe: Copying NSTextStorage Sherm Pendley Jun 4, 10:14