Skip to content

Small Objective-C library for easily adding/removing bundles from login items.

License

Notifications You must be signed in to change notification settings

ianyh/IYLoginItem

Repository files navigation

IYLoginItem

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.

About

Small Objective-C library for easily adding/removing bundles from login items.

Resources

License

Stars

Watchers

Forks

Packages

No packages published