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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to