Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Objective-C Cocoa utility functions/methods I can't live without (mirrored from bitbucket.org)

branch: master

Added ARC-compatibility utilities and file-error utility methods.

MYRetain, MYRelease, MYAutorelease
-[NSError my_isFileExistsError]
-[NSError my_isFileNotFoundError]
latest commit ac36a10c30
Jens Alfke authored March 13, 2014
Octocat-spinner-32 vendor Add missing files (for MYNetwork) June 19, 2012
Octocat-spinner-32 CollectionUtils.h
Octocat-spinner-32 CollectionUtils.m Added -[NSMutableArray my_removeMatching:] November 19, 2013
Octocat-spinner-32 ConcurrentOperation.h Add missing files (for MYNetwork) June 19, 2012
Octocat-spinner-32 ConcurrentOperation.m Add missing files (for MYNetwork) June 19, 2012
Octocat-spinner-32 ExceptionUtils.h Updated copyright years. September 18, 2013
Octocat-spinner-32 ExceptionUtils.m Fixed an issue in ExceptionUtils.m reported by Xcode 5.1 March 12, 2014
Octocat-spinner-32 Logging.h Updated copyright years. September 18, 2013
Octocat-spinner-32 Logging.m Updated copyright years. September 18, 2013
Octocat-spinner-32 MYBlockUtils.h Added MYOnThreadSynchronously() August 15, 2013
Octocat-spinner-32 MYBlockUtils.m Removed some unused NSOperationQueue support from MYAfterDelay September 18, 2013
Octocat-spinner-32 MYData.h Added MYData: utilities for working with slices and varints September 18, 2013
Octocat-spinner-32 MYData.m Added MYData: utilities for working with slices and varints September 18, 2013
Octocat-spinner-32 MYDynamicObject.h Adds a namespace prefix to classFromType and MYGetPropertyInfo, decla… February 16, 2014
Octocat-spinner-32 MYDynamicObject.m Adds a namespace prefix to classFromType and MYGetPropertyInfo, decla… February 16, 2014
Octocat-spinner-32 MYErrorUtils.h Added ARC-compatibility utilities and file-error utility methods. March 13, 2014
Octocat-spinner-32 MYErrorUtils.m Added ARC-compatibility utilities and file-error utility methods. March 13, 2014
Octocat-spinner-32 MYRegexUtils.h Fixed some copyrights. November 12, 2013
Octocat-spinner-32 MYRegexUtils.m Fixed some copyrights. November 12, 2013
Octocat-spinner-32 MYStreamUtils.h Added MYStreamUtils July 25, 2012
Octocat-spinner-32 MYStreamUtils.m Added MYStreamUtils July 25, 2012
Octocat-spinner-32 MYURLHandler.h Fixed some copyrights. November 12, 2013
Octocat-spinner-32 MYURLHandler.m Fixed some copyrights. November 12, 2013
Octocat-spinner-32 MYURLUtils.h Added .my_proxySettings to MYURLUtils December 19, 2013
Octocat-spinner-32 MYURLUtils.m Added a missing #import to MYURLUtils.m. February 05, 2014
Octocat-spinner-32 MYUtilities.xcconfig Removed some obsolete build options from the xcconfig. May 14, 2012
Octocat-spinner-32 MYUtilities_Debug.xcconfig First commit into git. A subset of the files in Mercurial revision 31… January 26, 2012
Octocat-spinner-32 MYUtilities_Prefix.pch Add missing files (for MYNetwork) June 19, 2012
Octocat-spinner-32 MYUtilities_Release.xcconfig First commit into git. A subset of the files in Mercurial revision 31… January 26, 2012
Octocat-spinner-32 README.md First commit into git. A subset of the files in Mercurial revision 31… January 26, 2012
Octocat-spinner-32 Target.h Updated copyright years. September 18, 2013
Octocat-spinner-32 Target.m Updated copyright years. September 18, 2013
Octocat-spinner-32 Test.h Test.m: Added ability to write a JUnit-compatible XML report file. January 10, 2014
Octocat-spinner-32 Test.m Code coverage: check for methods not called during their tests January 13, 2014
Octocat-spinner-32 setObjToARC.rb Added -[Target retainTargets]. Added setObjToARC conversion utility. May 29, 2013
README.md

MYUtilities

Objective-C utilities for Cocoa programming on Mac OS X and iPhone

by Jens Alfke jens@mooseyard.com

These are useful things I've built over the years and can't live without. This Git repo is basically a mirror of the original Mercurial repo at Bitbucket.org.

The core parts are:

CollectionUtils

A grab-bag of shortcuts for working with Foundation classes, mostly collections. If you've ever been envious of how simple it is to construct an array or hash in Ruby, Python or PHP, give these a try.

Logging

Everyone seems to build their own logging utility; this is mine. The main nice feature is that you can log different categories of messages, and individually enable/disable output for each category by setting user defaults or command-line arguments. There's also a separate Warn() function that you can set a breakpoint on, which is itself a lifesaver during development.

Test

My own somewhat oddball unit test system. I like being able to put unit tests in the same source file as the code they test. The tests run at launch time (if a command-line flag is set) not in a separate build phase. You can set dependencies between tests to get some control over the order in which they run. The output is IMHO easier to read than SenTest's.

Something went wrong with that request. Please try again.