StartNotify() and touch command

1 post / 0 new
jabirulo
jabirulo's picture
Offline
Last seen: 2 hours 8 min ago
Joined: 2013-05-30 00:53
StartNotify() and touch command

Hi, testing StartNotify() I found that when on a file a do from CLI/Shell "touch " I get 2 notifications, while editing same file and saving I only get one notification-

Attached code, don't know if its ok or has some errors, but works fine.

Using snoopy I can see:
touch rsGUI.cd:
...
00040 : touch : o.k. = SetProtection("RSGUI.cd",0x00000002) [2522uS]
...
00042 : touch : o.k. = SetDate("RSGUI.cd",0x6320E918) [1568uS]
...

notepad rsgui.cd (and use 'Save' from menu):
...
00003 : notepad : o.k. = SetProtection("Devel:SDK/ejemplos/NETWORK/rsGUI/RSGUI.cd",0x00000002) [2959uS]
..

How can I "restrict" to only get (or discard) 1 notification on "touch "?

TiA

File attachments: 

AttachmentSize
File notifysrc.lha773 bytes