Google Toolbox For Mac

I just saw this by way of Arstechnica. For those of you interested in Mac programming, Google has released Google Toolbox for Mac, an open source project that provides code samples and utility code for a variety of programming functions. It's distributed under the Apache 2.0 License. According to the Google Mac Blog:

"This first release is a little eclectic. It starts with some simple utilities that we seem to need in just about every project, helpers for graphical things and for building unittests. In time, we'll add more utilities, more interesting and complex classes, and other interesting stuff." Read below for a more detailed list....

Here is a quick summary of the contents



AppKit = graphics stuff:

  • Geometry utilities to manipulate NSRect, NSPoint, ...
  • Shading (gradient)
  • NSBezierPath additions: CGPath conversions, round rects, shading
  • Manipulation of login items
  • Access to system colors and themes (not sure what this one is about)


    Foundation =

  • Manipulation of HTML and XML to play nicer with NSString (e.g. special characters in html)
  • Regular expression, based on libregex
  • gzip for NSData
  • Special enumerators to loop through a collection only on filtered elements (kind of like a mix of perl grep anb map)
  • Easy checks for system version (e.g. 'isLeopard', 'isTiger',...)
  • Fancy range calculations, that can include stops
  • boilerplate code for singleton object


    Extras =

  • Some units tests for all that
  • Xcode potentially useful configurations (those xcconfig files, very powerful stuff)

     

  • Comments

    Extended post

    I just extended the post above with some details of the contents, for those of you interested...