Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

FileMonitor deprecated

  Topic Search Topic Search
C4DS View Drop Down

Joined: 2015 Dec 01
Online Status: Offline
Posts: 235
Direct Link To This Post Topic: FileMonitor deprecated
    Posted: 2018 Apr 28 at 11:01pm

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.
Back to Top
MaximeA View Drop Down
Forum Moderator
Forum Moderator

Forum Moderator

Joined: 2018 Jan 04
Location: France - Nantes
Online Status: Offline
Posts: 119
Direct Link To This Post Posted: 2018 Apr 30 at 4:45am
Hi C4DS,

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

SDK Specialist
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 May 03 at 2:13am

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...

SDK Support Engineer
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.