Latest 1.0.0
Homepage https://github.com/mhuusko5/M5ApplicationOpenURL
License MIT
Platforms ios 7.0, osx 10.8, requires ARC
Frameworks Foundation
Authors

Respond to application open URL event on iOS and Mac without owning/muddying the app delegate. Easy. Decoupled.

Usage

- (BOOL)applicationOpenURL:(NSURL *)URL fromApplication:(NSString *)sourceApplication {
    NSLog(@"Opened via %@ from source application %@.", URL.absoluteString, sourceApplication);

    if (/*some check against URL*/) {
        return YES;
    }

    return NO;
}

...

[M5ApplicationOpenURL addHandlerWithTarget:self selector:@selector(applicationOpenURL:fromApplication:)];

//OR

[M5ApplicationOpenURL addHandlerWithCallback:^BOOL(NSURL *URL, NSString *sourceApplication) {
    NSLog(@"Opened via %@ from source application %@.", URL.absoluteString, sourceApplication);

    if (/*some check against URL*/) {
        return YES;
    }

    return NO;
}];

Latest podspec

{
    "name": "M5ApplicationOpenURL",
    "version": "1.0.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Respond to application open URL event on iOS *and* Mac *without owning/muddying the app delegate*. Easy. Decoupled.",
    "homepage": "https://github.com/mhuusko5/M5ApplicationOpenURL",
    "social_media_url": "https://twitter.com/mhuusko5",
    "authors": {
        "Mathew Huusko V": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mhuusko5/M5ApplicationOpenURL.git",
        "tag": "1.0.0"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0",
        "osx": "10.8"
    },
    "frameworks": "Foundation",
    "ios": {
        "frameworks": "UIKit"
    },
    "osx": {
        "frameworks": "Cocoa"
    }
}

Pin It on Pinterest

Share This