| View previous topic :: View next topic |
| Author |
Message |
Bob Dawson Guest
|
Posted: Thu Dec 15, 2005 3:50 pm Post subject: Re: File arrival notification the OO way |
|
|
"José González D'Amico" wrote
| Quote: |
I don't know how to implement such functionality
|
What you're looking for is called publish-subscribe or the Observer pattern.
Basically it separates the act of listening for an event from the action
that the listener takes when that event happens. Also something called event
multicasting.
Try googling:
delphi publish subscribe
or
delphi observer pattern
bobD
|
|
| Back to top |
|
 |
Peter Morris [Droopy eyes Guest
|
Posted: Fri Dec 16, 2005 2:50 pm Post subject: Re: File arrival notification the OO way |
|
|
Hi
| Quote: | in a folder. I wrote a wrapper class around a folder monitor class I've
found on the web.
|
Was it my DirMonitor from CodeCentral? :-)
|
|
| Back to top |
|
 |
Peter Morris [Droopy eyes Guest
|
Posted: Sun Dec 18, 2005 8:09 pm Post subject: Re: File arrival notification the OO way |
|
|
| Quote: | BTW, this class has some annoying bugs when watching at subfolders,
does your DirMonitor work well with subfolders?
|
I honestly have no recollection I think you can just tell it to monitor
a folder + subdirs and it triggers when something changes.
|
|
| Back to top |
|
 |
|