Re: accessing newly-created files
Re: accessing newly-created files
- Subject: Re: accessing newly-created files
- From: "David Piasecki" <email@hidden>
- Date: Fri, 16 Apr 2004 09:01:08 -0700
Yes, that's what I was going to try first. It would definitely speed
things up a bit.
David
On Apr 15, 2004, at 6:54 PM, Allan Odgaard wrote:
On 16. Apr 2004, at 3:33, Louis C. Sacha wrote:
A thread is really overkill for this situation.
I would say the same thing about using knote and kevent() [...]
The other issue is whether checking for the existence of the file is
enough? [...]
Ehm... did any of you see my proposal about letting the program (which
generates the image) write to a named pipe?
Virtually nothing needs to be changed in his original program, he just
needs one call to mkfifo(). No threads, no kevent and the image is
loaded as soon as the data becomes available (even incrementally), so
no guessing, sleeping, or similar... :)
** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.