• 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
Finding out about all user level changes in NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding out about all user level changes in NSTextView?


  • Subject: Finding out about all user level changes in NSTextView?
  • From: Jim Correia <email@hidden>
  • Date: Fri, 31 May 2002 09:51:56 -0400

I have a text view that I'd like to find out about all changes in. In the delegate I've implemented

- (void)textDidChange:(NSNotification *)notification
{
if ([notification object] == myTextView)
{
NSLog(@"text view changed");
}
}

This is called for typing, paste, delete, drag and drop (more?).

It isn't called for undo/redo though.

Are there any other user level changes that can be made to the text view that won't fire this notification?

Is there a hook for me to be notified about the undo/redo changes? (I am using the undo manager supplied by the text view. I see that the undo manager broadcasts notifications but I don't see how to ask the text view what undo manager it is using so I can register for those notifications.)

Thanks,
Jim
_______________________________________________
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: Finding out about all user level changes in NSTextView?
      • From: Edwin Zacharias <email@hidden>
  • Prev by Date: Re: Menu "extra"
  • Next by Date: Re: Finding out about all user level changes in NSTextView?
  • Previous by thread: Re: Menu "extra"
  • Next by thread: Re: Finding out about all user level changes in NSTextView?
  • Index(es):
    • Date
    • Thread