instruments + undoManger = busted.

Discussion in 'iOS Programming' started by IDMah, Aug 21, 2012.

  1. macrumors regular

    Joined:
    May 13, 2011
    #1
    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
     
  2. thread starter macrumors regular

    Joined:
    May 13, 2011
    #2
    Never mind I'm an idiot !

    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!
     
  3. thread starter macrumors regular

    Joined:
    May 13, 2011
    #3
    ugh ! that simple..

    Like most problems. Solution was easy. but finding it was HARD.

    add to the cardSwapperFunction:
    Code:
     if (!undoManager) {
                undoManager = [[NSUndoManager alloc]init];
            }
    
    that was it.. ugh !!! Now if I can Stop SIGABRT to stop!

    Later Dudes
    Ian
     

Share This Page