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

Re: Finding out about all user level changes in NSTextView?


  • Subject: Re: Finding out about all user level changes in NSTextView?
  • From: Edwin Zacharias <email@hidden>
  • Date: Fri, 31 May 2002 11:01:11 -0400

Undo and redo are, in my opinion, badly implemented in NSTextView. For example, if you use AppleScript to change it, it won't register an undo event. This is because undo is implement at the view layer rather than at the model layer where it belongs. I have a fix for this. It adds an undo manager to NSTextSorage rather than using the one for NSTextView. Email me if you want it.

- Edwin



On Friday, May 31, 2002, at 09:51 AM, Jim Correia wrote:

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.
_______________________________________________
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: 
 >Finding out about all user level changes in NSTextView? (From: Jim Correia <email@hidden>)

  • Prev by Date: Finding out about all user level changes in NSTextView?
  • Next by Date: Simple font question
  • Previous by thread: Finding out about all user level changes in NSTextView?
  • Next by thread: Simple font question
  • Index(es):
    • Date
    • Thread