TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | BSD |
ReleasedLast Release | Dec 2014 |
Maintained by Richard Heard.
Various Objective-C categories and additions that have served me well over the years. Hopefully then can serve you too!
Released under the Modified BSD License. (Attribution Required)
RHAdditions Copyright (c) 2011-2013 Richard Heard. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. 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. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
Supporting macros to allow for building both with and without ARC enabled.
Provides debug and error logging macros.
Adds a firstObject
method for balance.
Adds support for Launch At Login via SMLoginItemSetEnabled()
.
Adds various (PNG / JPEG / GIF) representations.
Adds a logClassInfo
method to dump a classes ivars, properties and methods.
Adds a bunch of number methods to better reflect those available on NSNumber.
Adds a rot13 method for various "non security related" purposes.
Adds URL encoding methods.
Adds methods for running blocks on specific threads. Useful when specific tasks need to be performed on a specific thread etc.
Provides NSView snapshotting, useful for animations and cover transitions.
Provides UIView snapshotting, useful for animations and cover transitions.
Adds a method to allow for resizing of a windows contentSize over a specific duration.
Adds statusBar width, height and bounds methods.
Provides interpolation between 2 UIColors, useful for frame animations etc.
Provides a mac address / sha1 based set of device identifiers.
Adds pixel level image comparison, supports various thresholds for slight variations in images (eg from colour correction etc.) Also supports resizing one of the 2 images being compared if they are not the same size, so that a px by px comparison is possible.
Adds support for accessing the underlying raw pixel data of a UIImage, both in bulk and on a point by point basis. Returned format is RGBA pre-multiplied as is supported by CoreGraphics.
Adds support for resizing of UIImages that are backed by a CGImage, preserves rotation metadata and scale.
Adds some simple widthForHeight:
etc. methods.
Adds support for showing a completed action badge from a given view. eg: Upon tapping a submit button and getting a conformation from the server you could show a green checkmark over the submit buttons view.