| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Yes, that would be nice.
I guess I would approach this by using your own controller object with -insertMacro: and -deleteMacro: methods, and have them register each other to undo each other's actions. You can set the selection range appropriately in each instead of depending upon NSTextView's undo management.
I could go down this road. The only down side is that I'd have to do all that shouldChangeTextInRange: replacementString: does except for creating the undo object (so if the delegate wanted to reject the change, it could, etc.)
| References: | |
| >Re: understanding NSTextView undo? (From: Jim Correia <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.