Latest 0.1
Homepage https://github.com/ianyh/IYLoginItem
License MIT
Platforms osx 10.6, requires ARC
Frameworks CoreServices
Authors

Small Objective-C library for easily adding/removing bundles from login items. Note that this library may not not work for sandboxed applications. In that case, as far as I know, the user must manually add the application to the list of login items via System Preferences.

Build Status

Usage

IYLoginItem adds a straightforward category to NSBundle. To add your application to the list of login items for the current user just do

[[NSBundle mainBundle] addToLoginItems];

and to subsequently remove from the list of login items do

[[NSBundle mainBundle] removeFromLoginItems];

and to check if your application is currently a login item do

[[NSBundle mainBundle] isLoginItem];

How To Get It

IYLoginItem is intended to be used with CocoaPods. Add

pod 'IYLoginItem'

to your Podfile and viola.

Latest podspec

{
    "name": "IYLoginItem",
    "version": "0.1",
    "summary": "Small Objective-C library for easily adding/removing bundles from login items.",
    "homepage": "https://github.com/ianyh/IYLoginItem",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Ian Ynda-Hummel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ianyh/IYLoginItem.git",
        "tag": "0.1"
    },
    "platforms": {
        "osx": "10.6"
    },
    "source_files": "IYLoginItem",
    "frameworks": "CoreServices",
    "requires_arc": true
}

Pin It on Pinterest

Share This