Re: NSLayoutManager question
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.