Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    FileMonitor deprecated

    SDK Help
    0
    3
    915
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 28/04/2018 at 23:01, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R19 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      The documentation mentions (in its manual) that the FileMonitor is deprecated and will be replaced in a future release.
      So, what should we use in the meantime?

      Still rely on this FileMonitor class, and re-implement the whole when the new replacement is available, or ignore this FileMonitor and use some other mechanism? (which one?)

      I am looking into using presets (files) stored in a folder, and would want to know when user adds/removes/renames/updates preset, in order to update the list of presets in combobox or similar.

      I could keep a cache, with filenames, timestamps, etc ... and check if things have changed. That would be fine when using the preset to check for changes and sync when needed, but this way I will not get triggered when something has changed before actually using the preset.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 30/04/2018 at 04:45, xxxxxxxx wrote:

        Hi C4DS,

        I will ask you a little bit of patience, due to off-day you will probably get an answer only Wednesday.

        Maxime

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 03/05/2018 at 02:13, xxxxxxxx wrote:

          Hi,

          sorry, Wednesday was one of those lost days...

          While FileMonitor is deprecated, it is still valid and the only option we currently provide. The deprecation note is only there to make developers aware of upcoming changes, so they can prepare to rework such code pieces. Unfortunately I still can not say,l when the replacement will arrive...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post