• 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 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.

References: 
 >Re: NSLayoutManager question (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: OT: trouble getting "Cocoa Programming" ISBN: 0672322307 by Scott Anguish, Erik M. Buck, Donald A. Yacktman ?
  • Next by Date: Re: NEWBIE: where to start my thread
  • Previous by thread: Re: NSLayoutManager question
  • Next by thread: Re: NSLayoutManager question
  • Index(es):
    • Date
    • Thread