Developer

Frameworks for Cocoa Developers


ObjCRegex

A set of regular expression classes for Objective-C. This framework is built off of the PCRE library (6.7). Here are the basics:

  • There’s a PCRegex object
  • All matching is done via calls on strings (not on the Regex object)
Examples:
    #import <ObjCRegex/ObjCRegex.h>

    // create a regex for multiple uses
    PCRegex *regex = [PCRegex regexWithPattern:@"pattern"];

    // match the regex
    [@"This is the string that I want to match" match:regex];
    [@"This string will match because it contains the word pattern" match:regex];

    // matching without creating a regex object
    [@"This is the string that I want to match" matchPattern:@"pattern"];
    [@"This is the string that I want to match" matchPattern:@"str.*"];

    // matching with backreferences
    NSArray *backrefArray;
    PCRegex *regex = [PCRegex regexWithPattern:@"([^ ]*) ([^ ]*)"];
    [@"first second third" match:regex backreferences:backrefArray];

    NSString *first_match = [[backrefArray objectAtIndex:1] string];
    NSString *second_match = [[backrefArray objectAtIndex:2] string];
    
Things to know:
  • There’s no support for named backreference (yet)
  • UTF-8 isn’t supported (thought PCRE dose support it, so if someone wants to add support, that’d be great)
  • GPL license as always

You can check out the code which can be done via:
svn co svn://fadingred.org/objcregex/trunk objcregex


Libofx

The libofx open source library compiled as a Cocoa Framework

You can check out the code which can be done via:
svn co http://cashbox.googlecode.com/svn/trunk/libofx libofx


Sparkle

Extensions to Andy Matuschak's Sparkle

Changes include:

  • Interface improvements
  • Decreased the number of memory leaks
  • Improved thread safety
  • Created additional interfaces (for integration with CrashReporter)

You can check out the code which can be done via:
svn co http://fsframework.googlecode.com/svn/trunk/sparkle/ sparkle


CrashReporter

An abstraction of Adium's Crash reporter that works with any application
Crash Reporter Screenshot
The main header file contains all information for setting up the crash reporter.

You can check out the code which can be done via:
svn co http://fsframework.googlecode.com/svn/trunk/crash_reporter/ crashreporter


FSFramework

The framework shared between the projects of FadingRed
This framework contains a bunch of code that is useful for most projects. It includes some code from Adium as well.

You can check out the code which can be done via:
svn co http://fsframework.googlecode.com/svn/trunk/framework/ framework