• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSFileHandle and FIFO files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
email@hidden
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

  • Prev by Date: Re: Reading and writing 'rsrc' files.
  • Next by Date: Re: Non-standard attributes - avoid warning from data model compiler?
  • Previous by thread: Re: Reading and writing 'rsrc' files.
  • Next by thread: Problem filing modified Sketch objects (Newbie)
  • Index(es):
    • Date
    • Thread