Re: Unix FILE* and NSFileHandle
Re: Unix FILE* and NSFileHandle
- Subject: Re: Unix FILE* and NSFileHandle
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 29 Mar 2002 21:27:01 +0000
On Friday, March 29, 2002, at 07:22 PM, Jason Moore wrote:
Does anyone out there know if Cocoa is capable of converting between
standard unix FILE* structures and NSFileHandle? Anyone know how to do
that if cocoa can't?
I think it's something like this:
FILE* myFile; // assume this exists
NSFileHandle *myFH = [[NSFileHandle alloc]
initWithFileDescriptor:fileno(myFile)];
-- Finlay
_______________________________________________
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.