Code Snippets
DPRunLoopSource
DPRunLoopSource is 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. Also included a simple NSRunLoop category for adding input sources to to runloops.
License: BSD
Version 0.2: Download
DPNotificationObserver
DPNotificationObserver is a NSNotificationCenter category that adds two methods enabling you to synchronously wait for notification to arrive.
License: BSD
Version 0.1: Download
Objective-C Accessibility Wrapper
A set of three classes: DPUIElement, DPAccessibilityNotificationCenter and DPNameServer. The first is an Objective-C wrapper around the Carbon AXUIElement API while the second is an NSNotificationCenter subclass for interacting with accessibility notifications. DPNameServer is an independent, self-contained, object naming mechanism that works with DPUIElement.
License: BSD
Version 0.2: Download
NSExceptionStackTrace
A simple NSException category that adds a method returning a human readable stack trace (if available). It is based on the code posted in CocoaDev
License: BSD
Version 0.1: Download
getSysInfo
A set of functions for gathering system and machine information like OS version, architecture, CPU model and speed, RAM size and mac model. Some parts of it are based on Sparkle+. These functions have passed only some rough testing and may contain bugs so be sure to test them well. That being said, they worked on my machine.
License: BSD
Version 0.1: Download
DPQueue
DPQueue is a thread-safe two-lock queue, implementing the Michael & Scott algorithm.
License: BSD
Version 0.1: Download