I'm looking at the possibility of porting an app from Windows to Mac (OS9 & OSX). The Windows version uses an API function called 'GetDirectoryChangesW(...)' to receive certain notifications (specifically, it receives notifications whenever a file is added to, or changed, in a given subdirectory).
I need a similar function in the Mac version and initially tried polling (without success). Then I heard that a technique called "blocking" offers the equivalent Mac functionality. Apparently, an app can be "blocked" (i.e. suspended) until a specified event occurs.
Has anyone used this technique? Especially for receiving directory change notifications? If not, does anyone know where I can find out a bit more about blocking? Thanks in advance.
I need a similar function in the Mac version and initially tried polling (without success). Then I heard that a technique called "blocking" offers the equivalent Mac functionality. Apparently, an app can be "blocked" (i.e. suspended) until a specified event occurs.
Has anyone used this technique? Especially for receiving directory change notifications? If not, does anyone know where I can find out a bit more about blocking? Thanks in advance.