PDA

View Full Version : instruments + undoManger = busted.




IDMah
Aug 21, 2012, 01:06 PM
I'm getting something weird; If I compile with Instruments on the simulator and iPhone then the undoManager doesn't seem to record / register undo/redo(s).

It's so strange, can't figure it out, but it's the only thing that seems to change.
anyone else have this problem???

thanks
Ian



IDMah
Aug 22, 2012, 11:48 AM
Bug my code not in instruments.

Xcode does X when I do Y, but Y does not cause X therefore. X is at Fault all on it's own and Y resents that you called Y bad and is suing you !

oops!

IDMah
Aug 23, 2012, 01:04 PM
Like most problems. Solution was easy. but finding it was HARD.

add to the cardSwapperFunction:

if (!undoManager) {
undoManager = [[NSUndoManager alloc]init];
}


that was it.. ugh !!! Now if I can Stop SIGABRT to stop!

Later Dudes
Ian