Simple Undo Manager Problem
Simple Undo Manager Problem
- Subject: Simple Undo Manager Problem
- From: hac <email@hidden>
- Date: Tue, 24 Jul 2007 21:21:03 -0400
I'm haven't had much time to completely get used to Objective C, so
excuse me if this is a dumb question. In an app I'm making there are
various "filters" that can be applied to a textarea. My problem is
that, once a filter is executed, it can't be undone. To fix this
problem, I added the following code before the filter takes place:
[[textArea undoManager] registerUndoWithTarget:textArea
selector:@selector(setString:)
object:[textArea string]];
This successfully added an undo, but when I test it there is no
visable effect, and the textarea does not revert to the old text. I
get no error log. Am I missing something? could somebody please help
me out? Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden