Giter Club home page Giter Club logo

nsbundle-loginitem's Introduction

NSBundle+LoginItem

Build Status

A NSBundle category for adding / removing the bundle to LoginItems.

Usage

#import <NSBundle+LoginItem/NSbundle+LoginItem.h>

// Add current application to LoginItems
[[NSBundle mainBundle] enableLoginItem];

// Remove current application from LoginItems
[[NSBundle mainBundle] disableLoginItem];

Installation

NSBundle+LoginItem is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "NSBundle+LoginItem"

Author

Tom Li, [email protected]

License

NSBundle+LoginItem is available under the MIT license. See the LICENSE file for more info.

nsbundle-loginitem's People

Contributors

nklizhe avatar xv-tom-l avatar qvivo-tom avatar gotow avatar

Stargazers

Mindaugas Vaitiekūnas avatar Jaret Cuglewski avatar Jeremy Legendre avatar  avatar  avatar Leon.yan avatar Wolfgang Baird avatar Chris Akring avatar HamGuy avatar Mike Trummer avatar Ben Guo avatar Ahmet Günay avatar Karsten avatar

Watchers

 avatar James Cloos avatar

Forkers

xv-tom-l gotow

nsbundle-loginitem's Issues

Please release fix for crash in CFRelease on Cocoapods

We just experienced the crash in CFRelease on customer laptop

Looks like the issue has been fixed by #5 in 2017.

Would you please release updated version in Cocoapods?

We can probably point to master or specific commit for now. This is more of a problem for new projects which are starting to use NSBundle-LoginItem without knowing about the problem.

This is the stack trace of the crash we experienced:

#0	0x00007fff35007abf in CFRelease.cold.1 ()
#1	0x00007fff34e61c46 in CFRelease ()
#2	0x0000000100a2d777 in -[NSBundle(LoginItem) isLoginItemEnabled] at .../Pods/NSBundle+LoginItem/Pod/Classes/NSBundle+LoginItem.m:100

10.10 deprecated API warning

NSBundle+LoginItem.m

'LSSharedFileListItemResolve' is deprecated: first deprecated in OS X 10.10 - Use LSSharedFileListItemCopyResolvedURL instead.

Can you update it?

Crash when calling isLoginItemEnabled and loginitem is corrupt

Thanks for the pod, great work!

Found an edge case bug today, reported by a beta tester of one of our apps.

It crashes on line 100 (CFRelease of appURL) if you have a "corrupt" item of the app as loginitem (see screenshot)

Crashed: com.apple.main-thread
EXC_BREAKPOINT EXC_I386_NMIFLT at 0x0000000000000000
NSBundle+LoginItem.m line 100

screen-shot-2015-10-03-at-13 24

Could it be a solution to use _bridge_transfer and let ARC do the memory management?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.