KVO, TableViews and Undo
KVO, TableViews and Undo
- Subject: KVO, TableViews and Undo
- From: Cornelius Jaeger <email@hidden>
- Date: Wed, 8 Dec 2004 16:34:03 +0100
hi list,
i've implemented undo in a kvo app.
i get error messages of the type:
2004-12-08 16:29:42.545 SF Task Manager[1227] *** -[NSCFArray
objectAtIndex:]: index (0) beyond bounds (0)
2004-12-08 16:29:44.025 SF Task Manager[1227] undo: NSUndoManager
0x30e570 is in invalid state, undo was called with too many nested undo
groups
iff, a row in the table is selected
if i manually deselect the rows every time i hit command-z it works
very well. if a row is selected and i try to undo the insert of that
row i get the above errors.
the first after hitting undo once, the second after hitting undo twice.
is this a bug or do i have an error in my code.
it's pretty much copied from aaron's book.
thx
cornelius
_______________________________________________
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