Re: NSLayoutManager and NSTextView problems
Re: NSLayoutManager and NSTextView problems
- Subject: Re: NSLayoutManager and NSTextView problems
- From: Rob Minerick <email@hidden>
- Date: Fri, 21 Nov 2003 15:41:36 -0600
*** Assertion failure in -[NSMutableRLEArray
objectAtIndex:effectiveRange:],
String.subproj/NSAttributedString.m:1009
What is the backtrace from this?
I somehow forgot to mention that the problem comes when I try to change
the new NSTextStorage object as such:
[newTextStorage beginEditing];
[newTextStorage setAttributedString:RTFD];
[newTextStorage endEditing];
Anyway, using the NSExceptionHandler class to report it, I get:
2003-11-21 15:38:01.234 Journal[1188] *** Assertion failure in
-[NSMutableRLEArray objectAtIndex:effectiveRange:],
String.subproj/NSAttributedString.m:1009
2003-11-21 15:38:01.235 Journal[1188] NSExceptionHandler has recorded
the following exception:
NSInternalInconsistencyException -- Access invalid attribute location
44 (length 20)
Stack trace: 0x8dcb1f58 0x90aa95a8 0x909f95dc 0x92e1fcf4
0x92df732c 0x92e2fd88 0x92deb52c 0x92e19efc 0x92e30c0c 0x92e842b0
0x00007668 0x909f7804 0x901aa7f0 0x901af200 0x909f5650 0x92e5dec0
0x92e7e05c 0x92e02c78 0x92df534c 0x92dfd754 0x92eb9a1c 0x00002c74
0x0000297c 0x000027f0
_NSExceptionHandlerExceptionRaiser (in ExceptionHandling)
-[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:] (in
Foundation)
-[NSRLEArray objectAtIndex:effectiveRange:] (in Foundation)
-[NSConcreteTextStorage attributesAtIndex:effectiveRange:] (in AppKit)
-[NSTextView(NSSharing) setSelectedRange:affinity:stillSelecting:] (in
AppKit)
-[NSLayoutManager(NSPrivate)
_fixSelectionAfterChangeInCharacterRange:changeInLength:] (in AppKit)
-[NSLayoutManager
textStorage:edited:range:changeInLength:invalidatedRange:] (in AppKit)
-[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:]
(in AppKit)
-[NSTextStorage processEditing] (in AppKit)
-[NSTextStorage endEditing] (in AppKit)
-[VMJournalWindowController(VMTableHandler)
tableViewSelectionDidChange:] (in Journal) (VMTableHandler.m:94)
__nsnote_callback (in Foundation)
___CFXNotificationPost (in CoreFoundation)
__CFXNotificationPostNotification (in CoreFoundation)
-[NSNotificationCenter postNotificationName:object:userInfo:] (in
Foundation)
-[NSTableView _enableSelectionPostingAndPost] (in AppKit)
-[NSTableView mouseDown:] (in AppKit)
-[NSWindow sendEvent:] (in AppKit)
-[NSApplication sendEvent:] (in AppKit)
-[NSApplication run] (in AppKit)
_NSApplicationMain (in AppKit)
_main (in Journal) (main.m:13)
__start (in Journal) (crt.c:267)
start (in Journal)
--
Rob Minerick
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.