• 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: Serious NSTextStorage subclassing troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serious NSTextStorage subclassing troubles


  • Subject: Re: Serious NSTextStorage subclassing troubles
  • From: Max Horn <email@hidden>
  • Date: Wed, 24 Aug 2005 13:29:08 +0200


Am 24.08.2005 um 12:30 schrieb Francisco Tolmasky:

For some reason I can't make a proper subclass of NSTextStorage. I've tried the examples online buy no matter what I do, I always end up with one of the following:

*** NSRunStorage, _NSBlockNumberForIndex(): index (4294967295) beyond array bounds (0)
*** -[NSCFString substringWithRange:]: Range or index out of bounds


Maybe its with how I'm using the text storage? I'm instantiating it and giving it to the layout manager like the examples on developer.apple.com

Does anyone know what could be up?

Did you follow the guidelines for subclassing NSTextStorage? See <http://developer.apple.com/documentation/Cocoa/Conceptual/ TextStorageLayer/Tasks/Subclassing.html>.


See also <http://www.cocoadev.com/index.pl?NSTextStorage> for a working minimal example (I recently built a custom text storage based on that myself, worked like a charm).


Cheers, Max _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Serious NSTextStorage subclassing troubles (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Apple events from daemon process to application in Cocoa
  • Next by Date: (no subject)
  • Previous by thread: Serious NSTextStorage subclassing troubles
  • Next by thread: Apple events from daemon process to application in Cocoa
  • Index(es):
    • Date
    • Thread