2

trying to implement undo function in smooth drawing app that I did following this tutorial

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_freehand-drawing/

From what I read, using NSUndoanager is the best way of doing it, but I am not seeing how to implement it in the code. Should I put the – prepareWithInvocationTarget: in drawBitmap?

Thanks.

user2067051
  • 99
  • 2
  • 15
  • have a look at this 1) http://stackoverflow.com/questions/8249506/difficulty-implementing-nsundomanager-redo-function 2)http://stackoverflow.com/questions/3616946/how-to-implement-undo-using-nsundomanager-newbie-question – Agent Chocks. Aug 06 '13 at 13:14
  • This might be helpful: Apple's "DotViewUndo" sample code. It's a tiny project with undo/redo: https://developer.apple.com/library/mac/samplecode/DotViewUndo/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008851-Intro-DontLinkElementID_2 – original_username Apr 09 '14 at 17:50
  • hey can you please tell me how did u implement the undo in this drawing application ? – Sushree Swagatika Jan 16 '17 at 07:04

0 Answers0