Re: Serious NSTextStorage subclassing troubles
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