Re: Can I get a FILE* from Cocoa (NSFileHandle )?
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