What is the patcher.dirty method for?


    Jan 07 2009 | 10:35 am
    Hello,
    I see this example in the javascript help:
    p = this.patcher;
    p.fullscreen(1); // makes the patcher take up the whole screen
    p.dirty(); // make an editable patcher dirty
    What is the p.dirty method for? Does it have anything to do with the
    dirty property of any MacOS file? I don't understand...
    Roald Baudoux

    • Jan 07 2009 | 11:57 am
      On 7 janv. 09, at 11:35, Roald Baudoux wrote:
      > Hello,
      >
      > I see this example in the javascript help:
      >
      > p = this.patcher;
      > p.fullscreen(1); // makes the patcher take up the whole screen
      > p.dirty(); // make an editable patcher dirty
      >
      > What is the p.dirty method for? Does it have anything to do with the
      > dirty property of any MacOS file? I don't understand...
      It sets the dirty property of a patcher (like sending the dirty
      message to thispatcher object), in opposition to clean. When a patch
      is "dirty" you can't close it directly, you need to save it (or not).
      HTH,
      ej
    • Jan 07 2009 | 12:44 pm