RE: Getting the rect of a character in an NSTextView
RE: Getting the rect of a character in an NSTextView
- Subject: RE: Getting the rect of a character in an NSTextView
- From: Keith Blount <email@hidden>
- Date: Mon, 24 Jan 2005 12:07:00 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Many thanks for your reply - it was your very helpful
reply some time ago with the WDC example of drawing a
bubble around text that got me this far, and that is
what I have been trying to refer to when building this
part of my code (obviously not quite successfully).
Here is a snippet of my backtrace - the backtrace is
long, but it is basically a repeat of what is below
for every margin card that has raised an error. It
seems to be an EXC_BAD_ACCESS error. I don't know if
this helps.
Many thanks again to anyone who can point me in the
right direction,
Keith
Program received signal: "EXC_BAD_ACCESS".
(gdb) bt
#0 0x92dee658 in save_world ()
#1 0x92dd04d8 in -[NSATSTypesetter
layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:]
()
#2 0x92dd9140 in -[NSLayoutManager(NSPrivate)
_fillLayoutHoleAtIndex:desiredNumberOfLines:] ()
#3 0x92df23dc in
_NSFastFillAllLayoutHolesUpToEndOfContainerForGlyphIndex
()
#4 0x92ddca8c in -[NSLayoutManager
textContainerForGlyphAtIndex:effectiveRange:] ()
#5 0x92e07818 in -[NSLayoutManager
glyphRangeForTextContainer:] ()
#6 0x92e98f20 in -[NSTextView sizeToFit] ()
#7 0x004a0994 in -[HEMMarginTextView updateSize:]
(self=0x2240880, _cmd=0x4a188c,
notification=0x59a1ae0) at
/Users/keithblount/MarginCards/HEMMarginTextView.m:442
#8 0x909f7184 in _nsnote_callback ()
#9 0x901aa5c0 in __CFXNotificationPost ()
#10 0x901aefd0 in _CFXNotificationPostNotification ()
#11 0x909f4fd0 in -[NSNotificationCenter
postNotificationName:object:userInfo:] ()
#12 0x92dfd1a0 in -[NSView
_postFrameChangeNotification] ()
#13 0x92e10a18 in -[NSView setFrameOrigin:] ()
#14 0x92e09010 in -[NSView setFrame:] ()
#15 0x004e3758 in -[HEMMarginView
updateMarginCardPositions] (self=0x2242830,
_cmd=0x48bd1c) at
/Users/keithblount/MarginCards/HEMMarginView.m:701
#16 0x004e37fc in -[HEMMarginView
updateMarginCardPositions:] (self=0x2242830,
_cmd=0x4e4698, notification=0x59a1a20) at
/Users/keithblount/MarginCards/HEMMarginView.m:716
#17 0x909f7184 in _nsnote_callback ()
#18 0x901aa5c0 in __CFXNotificationPost ()
#19 0x901aefd0 in _CFXNotificationPostNotification ()
#20 0x909f4fd0 in -[NSNotificationCenter
postNotificationName:object:userInfo:] ()
#21 0x92dfd1a0 in -[NSView
_postFrameChangeNotification] ()
#22 0x92ded594 in -[NSView setFrameSize:] ()
#23 0x92e4cdc0 in -[NSTextView(NSPrivate)
_setFrameSize:forceScroll:] ()
#24 0x92e0e5bc in -[NSTextView
setConstrainedFrameSize:] ()
#25 0x92debe18 in -[NSLayoutManager(NSPrivate)
_resizeTextViewForTextContainer:] ()
#26 0x92dff0e4 in -[NSLayoutManager(NSPrivate)
_updateUsageForTextContainer:addingUsedRect:] ()
#27 0x92dfa550 in -[NSLayoutManager
setLineFragmentRect:forGlyphRange:usedRect:] ()
#28 0x92e0fca8 in -[NSATSTypesetter
setLineFragmentRect:forGlyphRange:usedRect:baselineOffset:]
()
#29 0x92de2fd8 in -[NSATSTypesetter
_layoutLineStartingWithGlyphAtIndex:withProposedRect:]
()
#30 0x92e0bc34 in -[NSATSTypesetter
layoutParagraphAtPoint:] ()
#31 0x92dd0bc0 in -[NSATSTypesetter
layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] ()
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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