• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutManager question


  • Subject: Re: NSLayoutManager question
  • From: Koen van der Drift <email@hidden>
  • Date: Thu, 6 Feb 2003 14:21:13 -0500

At 9:34 AM -0800 2/6/03, Douglas Davidson wrote:

One possibility would be to use a custom layout manager subclass and override the actual method that the text storage calls to notify the layout manager, first calling super and then doing your additional work. (The method is textStorage:edited:range:changeInLength:invalidatedRange:.) I don't think there is any specific notification indicating that the layout manager has been informed of changes.



Thanks,

I will try that when I'm at my Mac. In the meantime an additional question, is there a 'recommended' notification/delegate method to use after an NSTextView has been edited? So far I was using NSTextStorageDidProcessEditingNotification, resulting in the problems with the layout manager, but I don't have to use that notification per se.

thanks,


- Koen.
_______________________________________________
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 question
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: NSLayoutManager question (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Programmatically adding an NSTextField to an NSTextView
  • Next by Date: NSButton info from contextual menu item's action
  • Previous by thread: Re: NSLayoutManager question
  • Next by thread: Re: NSLayoutManager question
  • Index(es):
    • Date
    • Thread