Re: NSTextView Not Drawing Text
Re: NSTextView Not Drawing Text
- Subject: Re: NSTextView Not Drawing Text
- From: Seth Willits <email@hidden>
- Date: Sat, 9 Dec 2006 12:21:03 -0800
On Dec 8, 2006, at 21:26, Douglas Davidson wrote:
I think I've pretty much nailed this to the fact that it doesn't
draw until after the background layout is all complete. But why
doesn't it draw what it's already laid out? What controls that?
Usually this means that something along the drawing path has asked
for information that requires layout to be complete. TextEdit
certainly displays text before all layout is complete, and that is
essentially an unmodified text view. Obtaining a backtrace while
this layout is going on should tell you what is causing it.
Mail freaked out and I didn't see my own message or your reply. I had
to go look in the Cocoa archive to fine. Weird.
Anyway, when layout is going on, the main thread is doing the layout.
etc
#18 0x9378bf5c in -[NSLayoutManager(NSPrivate)
_fillLayoutHoleAtIndex:desiredNumberOfLines:]
#19 0x937de494 in +[NSLayoutManager(NSPrivate) _doSomeBackgroundLayout]
#20 0x937de0e4 in _NSPostBackgroundLayout
#21 0x907dc73c in __CFRunLoopDoObservers
#22 0x907dca24 in __CFRunLoopRun
#23 0x907dc47c in CFRunLoopRunSpecific
#24 0x93208740 in RunCurrentEventLoopInMode
#25 0x93207dd4 in ReceiveNextEventCommon
#26 0x93207c40 in BlockUntilNextEventMatchingListInMode
#27 0x9370bae4 in _DPSNextEvent
#28 0x9370b7a8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#29 0x93707cec in -[NSApplication run]
#30 0x937f887c in NSApplicationMain
#31 0x00011c08 in main at main.m:13
All other threads are just kicking back and idling.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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