Latest 0.0.1
Homepage https://github.com/snej/MYUtilities
License BSD Copyright (c) 2008, Jens Alfke . All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions
and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRI-
BUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Platforms ios
Authors

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

by Jens Alfke [email protected]

These are useful things I’ve built over the years and can’t live without.
All of this code is released under a BSD license; see the file LICENSE.txt.

(This Git repo is a continuation of the earlier Mercurial repo at Bitbucket.org, which is by now quite out of date.)

The core parts are:

CollectionUtils

A grab-bag of shortcuts for working with Foundation classes, mostly collections. Some of it has been made obsolete by the recent addition of Objective-C object literal support, but there’s still a lot of useful stuff.

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.

Latest podspec

{
    "name": "MYUtilities",
    "version": "0.0.1",
    "license": {
        "type": "BSD",
        "text": " Copyright (c) 2008, Jens Alfke . All rights reserved.nn Redistribution and use in source and binary forms, with or without modification, are permittedn provided that the following conditions are met:nn * Redistributions of source code must retain the above copyright notice, this list of conditionsn and the following disclaimer.n * Redistributions in binary form must reproduce the above copyright notice, this list of conditionsn and the following disclaimer in the documentation and/or other materials provided with then distribution.nn THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS ORn IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY ANDn FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRI-n BUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGESn (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, ORn  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INn CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OFn THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.n"
    },
    "summary": "Objective-C utility code for Cocoa programming on Mac OS X.",
    "homepage": "https://github.com/snej/MYUtilities",
    "authors": {
        "Jens Alfke": "[email protected]"
    },
    "source": {
        "git": "https://github.com/snej/MYUtilities.git",
        "commit": "0cc46aaf394dfe451d83d0ae3954643662210767"
    },
    "platforms": {
        "ios": null
    },
    "source_files": [
        "{Logging,Test,ExceptionUtils,Target,CollectionUtils,ConcurrentOperation,MYURLUtils,MYBlockUtils,MYStreamUtils,MYRegexUtils}.{h,m}",
        "vendor/google-toolbox-for-mac/*.{h,m}"
    ],
    "libraries": "z",
    "requires_arc": false
}

Pin It on Pinterest

Share This