Edit AllPages

This page is for tracking re-usable Cocoa classes that can be mixed, matched, and dropped fairly easily into existing Cocoa projects to add useful functionality.

Full application source code is not quite what I’m looking for here, but rather individual packaged objects that perform a specific task without having too many external dependencies.

See also CocoaSampleCode, CocoaDevUsersAdditions.

Parts of the object library have been split off into subpages:




See ObjectLibraryNetwork.


*InterThreadMessaging - - Perform selectors and send notifications in the context of other threads. An alternative to DO.

*NDRunLoopMessenger - - Provides light weight version of DO, can send messages with the API NDRunLoopMessenger or get a NSProxy object from NDRunLoopMessenger and use that instead.

*ThreadMessage - - Simple alternative to using DistributedObjects for communication between threads

*ThreadWorker - - One-shot worker-thread class

*ProtoThreads - - Light weight, cooperative threads to simplify programming against asynchronous APIs.

Controls & View Classes

See ObjectLibraryViews.


*DataCrux - - A high-level, object-relational framework that provides an embedded SQL database engine for use in applications. Based on SQLite (and Blackhole Media’s SQLDatabase), so no server process runs on the machine. The public API is very simple, and there’s no need to write query strings. Developer defines object-db mapping in a property list, and the framework does the rest. Works with Jaguar and Panther. Open source BSD-style license.

*iODBC - - Complete cross-platform implementation of an ODBC v3.52 Driver Manager. Open Source SDK enables building of ODBC-compliant Client Drivers and Client Applications. SDKs for Mac OS 9 and Mac OS X, linkable as dylibs or Frameworks, support Cocoa, CFM and Mach-O Carbon, and Classic builds. Full Unicode support, 64-bit ready. Dual-licensed under LGPL and BSD License. iODBC v3.52.1 SDK current as of January 2005; iODBC 3.0.6 dylibs bundled into Mac OS X 10.2.x-10.3.x and Darwin 6.x-7.x. Free Web-based up-and-running and development support from maintainers, OpenLink Software,

*MacSQL Framework - - Framework for adding support for MySQL, PostgreSQL, Oracle, Sybase, MS SQL Server, OpenBase, and FrontBase to Cocoa and AppleScript Studio applications. Includes Interface Builder palette with widgets to query/update the database without writing any code. (not free)

*QuickLite - - Interface to SQLite. A much more complete package than the other SQLite database libraries. Also, check out the included SQLManagerX for database access.

*SQLDatabase - - Obj-C interface to the SQLite embeddable SQL database library

*SQLLite Browser - - Interface to SQLite

*BaseTen - - Nice, CoreData like framework for working with PostgreSQL

*ActiveRecord - An Active Record implementation in objective-c

*PostgresKit - - Embed PostgreSQL server in your Cocoa apps, etc.


*Cocoa XML-RPC Framework - - A lightweight XML-RPC client framework for Cocoa.

*SAXy OX - - Object-to-XML Marshalling Library. Features include: * Efficient reading/unmarshalling and writing/marshalling of XML from domain objects. * Full XML namespace support. * Built-in type conversion and formatting. * Highly configurable API. *Self-reflective automatic mapping. * Optimized for iOS with no no third-party dependencies.

*Iconara DOM Framework - - Framework for working with XML-data. Conforms to the DOM Level 3 Core specification as far as it’s useful in ObjC. Also includes Objective-C frontends to the Expat parser, a plug-in architecture for parsers, basic XPath support and output formatters – see IconaraDOM

*SKYRiX XML Processing Libraries - - a set of three frameworks for doing XML processing using Objective-C. Contains a SAX, DOM and XML-RPC implementation.

*UKXMLPersistence - - A category on NSDictionary that allows converting between XML and dictionaries. The tags are the keys, the values are the data. Makes for very readable XML and just as easy as property lists. The core is written with CoreFoundation, allowing for use in Carbon apps as well.

*XMLTree - XMLTree is a Public Domain Objective-C wrapper for Apple’s CFXMLParser which is provided in the CoreFoundation.

*Excelsior! - (BROKEN LINK) - XML marshaller for Cocoa/Objective C. Generate Objective C object instances from XML data or XML data from Objective C instances with just a few messages. An external file defines how the marshalling takes place.

Data Types

*BDAlias - - A class for dealing with alias records, a form of persistent file reference that is more robust and provides a better user experience than a textual path. Open Source with a BSD license. Link seems unresponsive.

*GTResourceFork - or - A thread-safe class for reading and writing resource forks.

*IconFamily - Interface with carbon to set/get finder icons, plus so much more

*JTAddressBook - (broken link) - Categories added to ABMultiValue, ABRecord and ABPerson to ease the development of code that works with the Address Book.

*KTMatrix - Collection class bridging the gap between NSArray and NSDictionary. Currently beta. See the DesignMatrix page for more.

*MTCoreAudio - - a Cocoa-flavored Objective-C wrapping around the Hardware Abstraction Layer (HAL) of Apple’s CoreAudio library.

*NDAlias - - A class to represent and alias record in Objective-C, can also be used for creating and modifying alias files.

*NDResourceFork - - A class for reading and writting Resource Forks.

*NDProcess - - A wrapper class for Apples Process Manager Functions.

*QSW_UUID - - class wrapping Core Foundation Universally Unique IDentifiers API (modified Creative Commons Attribution license)

*SnoizeMIDI - A framework containing code for dealing with CoreMIDI in a Cocoa app.

*week - - Categories to NSCalendarDate to work with ISO 8610 dates.

*JKPTree - A simple Cocoa wrapper for the CF type CFTree.

*SGUNArray - - A high performance class cluster that wraps C arrays.

*DPQueue - - A thread-safe two-lock queue, implementing the Michael & Scott algorithm.

*DPRunLoopSource - - An Objective-C wrapper around the CoreFoundation CFRunLoopSource API. It is implemented as an abstract class you subclass in order to create your own runloop source.


*Direct Dispatching - - A category to help apps handle Apple Events they send to themselves for recording purposes.

*FScript - An embeddable, open-source scripting engine for Cocoa.

*KFAppleScript Handler Additions - - Call functions in compiled applescripts, with arguments, and get return values.

*NDAppleScriptObject - - A class to represent an AppleScript, provides additional functionality to NSAppleScript.

*LuaCore - - An Objective-C framework for running Lua scripts. It includes a bridge so that you can pass in Objective-C objects, and work with them in the Lua environment.

“Kits” Largish collections of classes designed to be used together.

*OmniFrameworks - Contains OmniAppKit, OmniFoundation, OmniBase, and others. Used by OmniGroup in their apps. Very broad range of functionality, somewhat lacking in documentation.

*AGKit - (new) (old) - Contains AGRegex, AGSocket, and AGProcess. AGRegex: Perl-compatible pattern matching to Cocoa applications using the PCRE regular expression library, AGSocket: A BSD sockets framework for use in Cocoa applications, AGProcess: A class for getting Unix process statistics

*Bonzo Framework - - Submission-friendly collection moderated by Aaron Hillegass. MiscKit 2.0?

*DrawKit - - comprehensive graphics system for doing interactive vector drawing. Highly customisable, easy to get working “out of the box” and adapts to many common requirements easily. Could use some manpower to help bring documentation, etc up to speed. (was previously named GCDrawKit).

*EDFrameworks - One framework that provides seamless extensions of Foundation and AppKit. Two more frameworks that provide services for Internet applications, style sheet driven export of your objects and message handling. All with a BSD style OpenSource license.

*HighlighterKit - - A framework for SyntaxHighlighting in code editors.

*IDEKit - - A framework that provides “source text views” - programmer friendly editors that include syntax coloring (with plugin support for different languages), function pop-ups, split views, and (in the next version) folding.

*MiscKit - - coming soon, the MiscKit! –Really? It seems to me like it’s dead and has been for awhile. Where are you MiscKit?

*MOKit - - Includes a cocoa-wrapped implementation of Henry Spencer’s Regular Expression library as well as a number of other interesting tidbits

*MPWFoundation - - MarcelWeiher’s HigherOrderMessaging implementation as well as other miscellaneous stuff

*RegexKit - - PCRE based regular expression extensions to NSArray, NSDictionary, NSSet, and especially NSString.

*SourceCodeKit - - A framework for building IDEs (cf. IDEKit) based on libclang.

*ESSVideoShare - - A framework for OS X and iOS to easily implement uploading videos to various sharing sites

Misc / Unclassified

*STSTemplateEngine - - A Universal Template Engine in Objective-C/Cocoa for embedding in Cocoa applications. Includes a macro language for conditional template expansion and supports unicode. Open Source under GPL license. Other licensing options upon request.

*AMShellWrapper - - This class is based on TaskWrapper from Apple’s Moriarity sample code. Use it to run commandline tools from your application. Connect your own methods to stdout and stderr, get notified on process termination and more.

*BDControl - - A framework containing qualifiers and sort orderings similar to those in the old EOControl framework. Open Source with a BSD license.

*BDRuleEngine - - A framework for building rule-driven applications, similar to the DirectToWeb rule engine in WebObjects. (Requires BDControl.) Open Source with a BSD license.

*Narrative - - A Cocoa/GNUStep native plotting framework for Mac OS X. (LGPL)

*NDLaunchServices - - A wrapper class for LaunchServices.

*OgreKit - (Translated by Google[]) - Full-featured regex framework. Documentation is in Japanese, but it’s not too complicated to use.

*ObjPCRE -

*OPML - - Class for parsing OPML files. (BSD License)

*UKDocumentationController - - A tiny controller class that you hook up to some items in your “Help” menu to call up “Readme”, “Revision History” etc. anchors in your help book directly.

*UKFontMenuController - - A controller class that gives you a Carbon-style font menu that lists all font collections (or one particular one) and allows simply picking a font from the menu to apply it to the current field’s text.

*UKIdleTimer - - A wrapper around Carbon’s EventLoopIdleTimer. This is a timer that fires whenever the user has been idle for a certain amount of time.

*UKKQueue - - A wrapper class around the kqueue(2) file change notification mechanism.

*MyBlocks - - Classs for using Smalltalk Style Blocks with Obj-C (as far as possible with C)

*GradientTest - - Class for using CoreGraphics to draw smooth gradients in NSViews.

*PDPowerManagement - - Class for registering for sleep notifications and preventing idle sleep.

*SGUNumericalCocoa - - Several classes: extension to NSNumber for complex data types, classes for continuous ranges and sets of ranges.

*MABSupportFolder - Class to easily manage a app support folder

*CompressorAPIFramework - Cocoa framework for programmatically calling Apple’s Compressor (part of Final Cut Studio) and monitoring compression jobs.

*StoppableThreads - An NSThread replacement that allows threads to be stopped and joined.

*LinkScraper - - LinkScraper is a Cocoa class that “scrapes” (gives you a list of all links) for a given URL.

*BatchDownloader - - BatchDownloader is a Cocoa class that downloads a bunch of URLs asynchronously, and notifies you when it’s done.

*SingleBlockingDownload - - SingleBlockingDownload is the exact opposite of BatchDownloader. It downloads any file synchronously (blocking), returning the downloaded data to you once it is done.

*GDFramework - - Interface to the GD library for image reading, writing, resizing, cropping, drawing and filtering.

*CSRegex - An extremely lightweight regex class, using POSIX regexes instead of Perl-compatible ones.

*CSCoroutine - CoRoutine**’s for Cocoa.

*DPUIElement - - A set of wrappers around the carbon accessibility API plus some useful extensions.

*ZipArchive - - A framework / class for reading from zip archives

*SCEvents - - An FSEvents Objective-C wrapper

*CoreSearch - - An Objective-C wrapper for SearchKit

*SQMaskImageRep - - Clip Cocoa drawing to irregular, or semi-transparent masks

*LIFlipEffect - - Core Animation-based window flipping code.