When will prepareWithInvocationTarget: not be self?

Discussion in 'Mac Programming' started by grimreaper1377, May 4, 2009.

  1. grimreaper1377 macrumors regular

    Joined:
    Oct 20, 2007
    #1
    Hi,

    I'm going through the NSUndoManager tutorial on cocoadev and it says that the first thing you always need to do is called
    Code:
    prepareWithInvocationTarget:self
    Just a quick question: why is the argument always self? When would it be something else?

    Thanks
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2

Share This Page