Memo to self: NSFileHandle is the Cocoa class for dealing with sockets

I’ve been delving into sockets recently. Egad, they can be very evil.
Especially the select() call.
I looked all over Cocoa documentation to find an easy way to deal with sockets, to no avail.

Today, while looking for a Cocoa way to do FindFolder, I run across NSFileHandle,
the doc for which mentions “Background Inter-Process Communication Using Sockets”.
Of.. course.
Sockets are handled by a FILE CLASS.

Arrrrrgh.

Published by

rae

Mac developer

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.