• 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: NSLayoutManager and NSTextView problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutManager and NSTextView problems


  • Subject: Re: NSLayoutManager and NSTextView problems
  • From: Rob Minerick <email@hidden>
  • Date: Fri, 21 Nov 2003 16:15:34 -0600

That seems to have done the trick, thanks - I burned several hours on that one.

Conceptually, I'm still unclear as to why that was happening. Shouldn't the selection automatically be reset when the textStorage is swapped? Or is this something that is useful in some context that I can't think of? Anyway, thanks once again.

--
Rob Minerick
email@hidden

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];

From the bt, my best guess is that the associated text view still has a stale selection left over from the previous contents. I'm not sure why that is happening, but try resetting the selection when you change the contents.

Douglas Davidson
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSLayoutManager and NSTextView problems
      • From: Douglas Davidson <email@hidden>
References: 
 >NSLayoutManager and NSTextView problems (From: Rob Minerick <email@hidden>)
 >Re: NSLayoutManager and NSTextView problems (From: Douglas Davidson <email@hidden>)
 >Re: NSLayoutManager and NSTextView problems (From: Rob Minerick <email@hidden>)
 >Re: NSLayoutManager and NSTextView problems (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: NSLayoutManager and NSTextView problems
  • Next by Date: Re: Resize-window memory leak? (Was: [OT] Re: Don't leak memory!!)
  • Previous by thread: Re: NSLayoutManager and NSTextView problems
  • Next by thread: Re: NSLayoutManager and NSTextView problems
  • Index(es):
    • Date
    • Thread