Re: Copying NSTextStorage
Re: Copying NSTextStorage
- Subject: Re: Copying NSTextStorage
- From: "Sherm Pendley" <email@hidden>
- Date: Wed, 4 Jun 2008 04:14:12 -0400
On Tue, Jun 3, 2008 at 12:51 PM, Kyle Sluder
<email@hidden> wrote:
> On Tue, Jun 3, 2008 at 11:15 AM, Gordon Apple <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden