Re: Text layout responsibility
Re: Text layout responsibility
- Subject: Re: Text layout responsibility
- From: Martin Wierschin <email@hidden>
- Date: Fri, 12 Dec 2008 01:57:41 -0800
Can you post the full stack backtrace for the exception?
#0 0x92811e17 in objc_exception_throw
#1 0x9071bf2b in +[NSException raise:format:arguments:]
#2 0x9071bf6a in +[NSException raise:format:]
#3 0x934598cc in _NSBlockNumberForIndex
#4 0x93462baf in -[NSLayoutManager
textContainerForGlyphAtIndex:effectiveRange:]
#5 0x934629c8 in -[NSLayoutManager glyphRangeForTextContainer:]
#6 0x0026d4ab in -[MyTestController textDidChange_private:] at
MyTestController.m:2178
#7 0x0026d08d in -[MyTestController
TT_TextStorageContentChanged:] at
MyTestController.m:2017
What does the rest of the stack look like? My suspicion is that you
are modifying the contents of the NSTextStorage or changing the
NSTextContainer geometry in response to a layout event. You cannot
safely do either while layout is active on the stack.
~Martin
_______________________________________________
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