• 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: Unix FILE* and NSFileHandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Unix FILE* and NSFileHandle (From: Jason Moore <email@hidden>)

  • Prev by Date: Re: Blurry/flickery NSImage animation in ScreenSaverView
  • Next by Date: Re: App dying under MallocDebug and ObjectAlloc
  • Previous by thread: Re: Unix FILE* and NSFileHandle
  • Next by thread: Re: Unix FILE* and NSFileHandle
  • Index(es):
    • Date
    • Thread