Sometimes we code neat chunks of code which we consider cool enough to be shared. Most code here is cocoa, our weapon of choice. Some older code is Carbon, our old romping grounds. All this code is covered by the Blackhole License.

 

NetSocket 0.9

An Objective-C asynchronous TCP socket class that can simplify and even speed up networking in your application. NetSocket buffers both reads and writes behind the scenes, this allows you to read the data at the most convenient time and not worry if a call to send will block or not. Through a series of callbacks, a delegate is notified of socket events ( e.g. connected, disconnected, data available ). To make all of this possible, NetSocket uses new MacOS X networking APIs, mainly CFSocket ( part of the CoreFoundation CFNetwork API ).

Download

Calendar 0.1

A calendar control that looks very similar to the one found in the Date and Time preference panel. This package also includes an interface builder palette so that you can easily replace your nasty little calendar control with this one.

Download

SQLDatabase 0.1

A set of objective-c classes that wrap around the SQLite library, an embeddable SQL database engine which reads and writes directly to and from database files on disk. This is very handy for developers who need some sort of flexible database solution. The SQLite library is public domain.

Download

ThreadMessage 0.2

The purpose of the ThreadMessage class is to provide a light weight alternative to Cocoa's NSConnection class for sending messages between threads. It is very handy when all you need to do is send messages from a child thread to your main thread.

Download

URLTextView 0.1

Subclass of NSTextView providing support for URL link cursor and click tracking. The mouse will change to a hand pointer when you hover over links, and the link will change colors while clicked on. Also included are extensions to NSMutableAttributedString to identify and set the proper attributes for URLs.

Download