• 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
Re: Can I get a FILE* from Cocoa (NSFileHandle )?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I get a FILE* from Cocoa (NSFileHandle )?


  • Subject: Re: Can I get a FILE* from Cocoa (NSFileHandle )?
  • From: Dave Carrigan <email@hidden>
  • Date: Thu, 4 Sep 2008 10:21:56 -0700


On Sep 4, 2008, at 10:09 AM, Paul Archibald wrote:

I have gotten some suggestions on a problem which require access to standard C calls. In particular, one poster suggested that I use some calls which require a FILE*, when all I have at this point are NSTask, NSPipe, and NSFileHandle objects.

Which calls and what problem are they trying to solve?

Is it possible to get a FILE* from an NSPipe or NSFileHandle? I don't see anything in the documentation that looks like that. (I am not getting much help from Google either.)

It's pretty unlikely that you can map stdio FILE to a NSFileHandle. NSFileHandle does offer the -fileDescriptor method, which is the underlying object that both FILE and NSFileHandle are built on top of. NSPipe has similar methods. Maybe you can use some calls that work at that level?


--
Dave Carrigan
email@hidden
Seattle, WA, USA

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Can I get a FILE* from Cocoa (NSFileHandle )? (From: Paul Archibald <email@hidden>)

  • Prev by Date: Re: Can I get a FILE* from Cocoa (NSFileHandle )?
  • Next by Date: Re: understanding conversions between CF and NS datatypes
  • Previous by thread: Re: Can I get a FILE* from Cocoa (NSFileHandle )?
  • Next by thread: line break in Interface Builder
  • Index(es):
    • Date
    • Thread