NSFileHandle and FIFO files
NSFileHandle and FIFO files
- Subject: NSFileHandle and FIFO files
- From: Francisco Tolmasky <email@hidden>
- Date: Tue, 31 May 2005 23:16:51 -0700
I'm attempting to use named pipes (which are reffered to all over the place on developer.apple.com but mysteriously never explained how to use alongside your cocoa code), and I wanted to create one, then use an NSFileHandle to see when it is updated (like with [NSPipe fileHandleForReading]). However, this hangs my app, apperantly because NSFileHandle doesn't like FIFO files created as so:
NSLog(@"[%d]",mkfifo([path cString], 0644)); fileHandleForReading= [[NSFileHandle fileHandleForReadingAtPath: path] retain]; Does anyone know how to use named pipes with Cocoa, either with what I've done above or whatever method may work. I've been looking for some sort of documentation all night with no avail.
Thanks! Francisco Tolmasky www-scf.usc.edu/~tolmasky
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden