Custom NSTextView and undo/redos
Custom NSTextView and undo/redos
- Subject: Custom NSTextView and undo/redos
- From: Denis Delbecq <email@hidden>
- Date: Tue, 4 Apr 2006 23:54:42 +0200
Hello,
In my document-based text editor, the document windows has a custom
NSScrollView. I created a protocol for NSTextViewClass to manage cut/
copy/paste and
shouldChangeTextInRange:affectedCharRange:replacementString:
operations in my own way and these operations work fine. But
unfortunately, the undo/redo menu items are disabled. I tried also to
replace the protocol with a custom class , inherited from NSTextView
class and to pose this class as NSTextView class. The four methods I
designed still work fine, but cannot get undo/redo either. Thanks for
Help.
Denis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden