NSUndoManager problems with [NSMutableArray setArray] and TableViews
NSUndoManager problems with [NSMutableArray setArray] and TableViews
- Subject: NSUndoManager problems with [NSMutableArray setArray] and TableViews
- From: Felipe Baytelman <email@hidden>
- Date: Mon, 10 Jan 2005 16:06:27 +0900
I'm starting to work with NSUndoManager, and I have some problems with
it:
I'm not sure how REDO work...
If I do the following for managing and undoing theArray...
NSArray * undoArray = [NSArray arrayWithArray:theArray];
//... some array actions like
[theArray removeObjectAtIndex: 0];
[theTableView reloadData];
//...
[undoManager beginUndoGrouping];
[undoManager registerUndoWithTarget:theArray
selector:@selector(setArray:) object:undoArray];
[undoManager registerUndoWithTarget: theTableView
selector:@selector(reloadData:) object:nil];
[undoManager endUndoGrouping];
UNDO works OK, but REDO won't do anything.
What should I do to make REDO work?
Thanks!
--
Felipe Baytelman
email@hidden
080 5498 9347
email@hidden
_______________________________________________
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