Latest 0.9.3
Homepage https://github.com/seivan/SHInvocation
License MIT
Platforms ios 6.0, osx 10.8, requires ARC
Authors

CI Status
Version
Platform
License

This pod is used by SHFoundationAdditions as part of several components improving Foundation, UIKit, CoreLocation, GameKit, MapKit and other aspects of an iOS application’s architecture

Overview

SHInvocation is a category on top of NSInvocation to allow executing selectors with multiple

Installation

pod 'SHInvocation'

Setup

Put this either in specific classes or your project prefix file

#import "NSInvocation+SHInvocation.h"

or

#import "SHInvocation.h"

API

+(BOOL)SH_performInvocationOnTarget:(id)theTarget
                       withSelector:(SEL)theSelector
                       andArguments:(NSArray *)theArguments;

USAGE

  NSString * firstArgument  = @"My first Argument";
  NSArray  * secondArgument = @[firstArgument, firstArgument, firstArgument];

 BOOL didInvoke = [NSInvocation SH_performInvocationOnTarget:self 
                                                withSelector:@selector(passTheFirstArgument:passTheSecondArgument:) 
                                                andArguments:@[firstArgument, secondArgument]];

  NSParameterAssert(didInvoke);
  NSParameterAssert([self.firstArgument  isEqualToString:firstArgument]);
  NSParameterAssert([self.secondArgument isEqual:secondArgument]);

Contact

If you end up using SHInvocation in a project, I’d love to hear about it.

email: [email protected]
twitter: @seivanheidari

License

SHInvocation is © 2013 Seivan and may be freely
distributed under the MIT license.
See the LICENSE.md file.

Latest podspec

{
    "name": "SHInvocation",
    "version": "0.9.3",
    "summary": "Prefix on NSInvocation for easily invoking messages with multiple arguments.",
    "description": "                    SHInvocation is a category on top of NSInvocation to allow executing selectors with multiple arguments.nn                    * No swizzling or hacks.n                    * Name-scoped selectors.nn",
    "homepage": "https://github.com/seivan/SHInvocation",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Seivan Heidari": "[email protected]"
    },
    "source": {
        "git": "https://github.com/seivan/SHInvocation.git",
        "tag": "0.9.3"
    },
    "platforms": {
        "ios": "6.0",
        "osx": "10.8"
    },
    "source_files": "SHInvocation/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This