• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copying NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Copying NSTextStorage (From: Ross Carter <email@hidden>)
 >Re: Copying NSTextStorage (From: Gordon Apple <email@hidden>)
 >Re: Copying NSTextStorage (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: What's the NSMailDelivery replacement for Leopard and Beyond?
  • Next by Date: Re: NSObjectController needless in "Intro to Bindings"?
  • Previous by thread: Re: Copying NSTextStorage
  • Next by thread: NSColorWell and alpha
  • Index(es):
    • Date
    • Thread