discuss-gnustep
[Top][All Lists]
Advanced

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

Re: A little help for GWorkspace


From: Enrico Sersale
Subject: Re: A little help for GWorkspace
Date: Fri, 12 Jan 2001 14:43:04 +0200 (EET)

On Fri, 12 Jan 2001, Helge Hess wrote:

> 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 ?
> 
> Greetings
>   Helge
> 

I already know all this, but:

<INGENOUS>
I was thinking that that Irix deamon take control of all the file
system, without asking them...
</INGENOUS>




reply via email to

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