Re: NSLayoutManager question
Re: NSLayoutManager question
- Subject: Re: NSLayoutManager question
- From: Koen van der Drift <email@hidden>
- Date: Thu, 6 Feb 2003 15:31:39 -0500
At 11:34 AM -0800 2/6/03, Douglas Davidson wrote:
The most relevant items here are the delegate method
textView:shouldChangeTextInRange:replacementString:, which allows
the delegate to be notified and to deny or modify any user change,
and the NSTextDidChangeNotification and corresponding textDidChange:
delegate method, which report on user changes after they have
occurred. These last two are defined on the superclass NSText; see
NSText.h for more information.
There is one problem with this, textDidChange doesn't work with undo,
see this e.g. thread:
http://cocoa.mamasam.com/COCOADEV/2002/12/1/51365.php
I guess that was the reason I switched
NSTextStorageDidProcessEditingNotification.
- 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.