• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text layout responsibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Text layout responsibility
      • From: Rimas <email@hidden>
References: 
 >Text layout responsibility (From: Rimas <email@hidden>)
 >Re: Text layout responsibility (From: Martin Wierschin <email@hidden>)
 >Re: Re: Text layout responsibility (From: Rimas <email@hidden>)

  • Prev by Date: Re: Design for showing ridiculously huge number of images in Table View
  • Next by Date: Re: Text layout responsibility
  • Previous by thread: Re: Re: Text layout responsibility
  • Next by thread: Re: Text layout responsibility
  • Index(es):
    • Date
    • Thread