[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A little help for GWorkspace

From: Helge Hess
Subject: Re: A little help for GWorkspace
Date: Fri, 12 Jan 2001 13:25:14 +0100

Enrico Sersale wrote:
> > This could be done using a daemon which implements a timer and sends out
> > notifications (eg using NSDistributedNotificationCenter). One advantage
> > would be, that this daemon only needs to run stat once if multiple
> > applications are watching the same path.
> >
> > Greetings
> >   Helge
> >
> This is exactly wath I want to do. The problem is *how* ;-)
> Any suggestion?

I think the simplest way is to use DO and DistriNotificationCenter.

You need the daemon, which is a DO server that maintains a list of
clients and the path's they need to have watched. It periodically (using
an NSTimer) checks whether those paths changed and broadcasts the change
to the clients using NSDistributedNotificationCenter.

On the client side I would create a category on NSFileManager (eg
NSFileManager+1984.m ;-) which does the whole registry stuff (registers
the client with the server using DO, registers the client for the
DistriNotiCenter, starts the daemon, if not already running).

I see no particular problem with this, do you have any question on a
special subtopic ?

SKYRIX Software AG  http://www.skyrix.com/
Join the team:      http://www.skyrix.com/de/jobs/index.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]