Code Monkey home page Code Monkey logo

applist's People

Contributors

dcturner45 avatar kirb avatar rpetrich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

applist's Issues

SpringBoard crash when invoke AppListPreferenceBundle on iOS 4.2.1 iPad1.

AppList version : 1.5.1

When taped preference of DietBar, SpringBoard crash with NSException.

Feb  3 10:02:09 iPad SpringBoard[998]: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ valueForUndefinedKey:]: this class is not key value coding-compliant for the key isWebApplication.'\n*** Call stack at first throw:\n(\n   0   CoreFoundation                      0x3587a987 __exceptionPreprocess + 114\n    1   libobjc.A.dylib                     0x34a8249d objc_exception_throw + 24\n  2   CoreFoundation                      0x3587a705 -[NSException dealloc] + 0\n 3   Foundation                          0x311c5c4f -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 186\n  4   Foundation                          0x311809e5 _NSGetUsingKeyValueGetter + 88\n 5   Foundation                          0x3117fe8f -[NSObject(NSKeyValueCoding) valueForKey:] + 190\n   6   Foundation                          0x31221209 -[NSFunctionExpression expressionValueWithObject:context:] + 660\n   7   Foundation                          0x3117e02d -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 152\n   8   Foundation                          0x312255fb -[NSCompoundPredicateOperator evaluatePredicates:withObject:substitutionVariables:] + 186\n  9   Foundation                          0x3121e43f -[NSCompoundPredicate evaluateWithObject:substitutionVariables:] + 186\n 10  Foundation                          0x3117df8d -[NSPredicate evaluateWithObject:] + 16\n    11  Foundation                          0x3117de65 _filterObjectsUsingPredicate + 436\n 12  Foundation                          0x3117dba9 -[NSArray(NSPredicateSupport) filteredArrayUsingPredicate:] + 404\n  13  AppList.dylib                       0x0038eb57 0x0 + 3730263\n  14  AppList.dylib                       0x0038eeb5 0x0 + 3731125\n  15  CoreFoundation                      0x35817be7 __CFMachPortPerform + 210\n  16  CoreFoundation                      0x3580f6ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26\n    17  CoreFoundation                      0x3580f6c3 __CFRunLoopDoSource1 + 166\n 18  CoreFoundation                      0x35801f7d __CFRunLoopRun + 520\n   19  CoreFoundation                      0x35801c87 CFRunLoopRunSpecific + 230\n 20  CoreFoundation                      0x35801b8f CFRunLoopRunInMode + 58\n    21  GraphicsServices                    0x320c84ab GSEventRunModal + 114\n  22  GraphicsServices                    0x320c8557 GSEventRun + 62\n    23  UIKit                               0x341dc329 -[UIApplication _run] + 412\n    24  UIKit                               0x341d9e93 UIApplicationMain + 670\n    25  SpringBoard                         0x00003f23 0x0 + 16163\n    26  SpringBoard                         0x000036d4 0x0 + 14036\n)
Feb  3 10:02:09 iPad com.apple.SpringBoard[998]: terminate called after throwing an instance of 'NSException'

Also crashed Preference.app

Feb  3 10:02:10 iPad Preferences[1008]: -[__NSCFDictionary localizedCaseInsensitiveCompare:]: unrecognized selector sent to instance 0x1d7ea0
Feb  3 10:02:10 iPad Preferences[1008]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary localizedCaseInsensitiveCompare:]: unrecognized selector sent to instance 0x1d7ea0'\n*** Call stack at first throw:\n(\n    0   CoreFoundation                      0x3587a987 __exceptionPreprocess + 114\n    1   libobjc.A.dylib                     0x34a8249d objc_exception_throw + 24\n  2   CoreFoundation                      0x3587c133 -[NSObject(NSObject) doesNotRecognizeSelector:] + 102\n  3   CoreFoundation                      0x35823aa9 ___forwarding___ + 508\n 4   CoreFoundation                      0x35823860 _CF_forwarding_prep_0 + 48\n 5   libapplist.dylib                    0x03b5e2d9 0x0 + 62251737\n 6   CoreFoundation                      0x3582c181 __-[NSMutableArray sortUsingFunction:context:]_block_invoke_1 + 16\n 7   CoreFoundation                      0x3582c16d __-[NSMutableArray sortRange:options:usingComparator:]_block_invoke_1 + 20\n 8   CoreFoundation                      0x3580a6ed __CFSimpleMergeSort + 412\n  9   CoreFoundation                      0x3580a581 __CFSimpleMergeSort + 48\n   10  CoreFoundation                      0x3580a467 CFSortIndexes + 142\n    11  CoreFoundation                      0x35818769 -[NSMutableArray sortRange:options:usingComparator:] + 456\n 12  CoreFoundation                      0x3581858f -[NSMutableArray sortWithOptions:usingComparator:] + 58\n    13  CoreFoundation                      0x3582c0e5 -[NSMutableArray sortUsingFunction:context:] + 52\n  14  libapplist.dylib                    0x03b5e06b 0x0 + 62251115\n 15  libapplist.dylib                    0x03b5ddbf 0x0 + 62250431\n 16  AppList                             0x03b4aa48 0x0 + 62171720\n 17  AppList                             0x03b4b990 0x0 + 62175632\n 18  Preferences                         0x35480a41 -[PSListController controllerForRowAtIndexPath:] + 736\n 19  Preferences                         0x0000e92d 0x0 + 59693\n    20  UIKit                               0x3420b6a9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 260\n 21  UIKit                               0x342cb613 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 130\n    22  Foundation                          0x31181dfd __NSFireDelayedPerform + 368\n   23  CoreFoundation                      0x358310a3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14\n 24  CoreFoundation                      0x35830b5b __CFRunLoopDoTimer + 850\n   25  CoreFoundation                      0x358021b5 __CFRunLoopRun + 1088\n  26  CoreFoundation                      0x35801c87 CFRunLoopRunSpecific + 230\n 27  CoreFoundation                      0x35801b8f CFRunLoopRunInMode + 58\n    28  GraphicsServices                    0x320c84ab GSEventRunModal + 114\n29  GraphicsServices                    0x320c8557 GSEventRun + 62\n  30  UIKit                               0x341dc329 -[UIApplication _run] + 412\n    31  UIKit                               0x341d9e93 UIApplicationMain + 670\n    32  Preferences                         0x00002f19 0x0 + 12057\n    33  Preferences                         0x00002edc 0x0 + 11996\n)
Feb  3 10:02:10 iPad UIKitApplication:com.apple.Preferences[0x2fd7][1008]: terminate called after throwing an instance of 'NSException'

Here is crashlog.
https://dl.dropbox.com/u/149268/SpringBoard_2013-02-03-102420_iPad.plist

Please update for iOS11

Rocketbootstrap now compatible with iOS11, so please update AppList too. There are too many things rely on it.

Update AppList on BigBoss?

I was wondering if you could update AppList on the BigBoss repo. It would be great to have the right version instead of an older one.

I hope this is possible, I look forward to your reply!

Current BigBoss version:
2357DF8D-CFA3-4EA4-9921-F3A9FC45776F

iOS 6 faults

As +[SBIconModel sharedInstance] no longer exists, this is incompatible with iOS 6

v1.5.12 - Crash When _displayIdentifiers is Empty

Using the exact same code in my tweak, libapplist.dylib crashes using v1.5.12 but does not crash using v1.5.11.

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'

ALApplicationTableDataSource *_dataSource = [[ALApplicationTableDataSource alloc] init];
NSString *enabledList = @"";

_dataSource.sectionDescriptors = [NSArray arrayWithObjects:
        [NSDictionary dictionaryWithObjectsAndKeys:
            @"Enabled Applications", ALSectionDescriptorTitleKey,
            @"ALCheckCell", ALSectionDescriptorCellClassNameKey,
            iconSize, ALSectionDescriptorIconSizeKey,
            @YES, ALSectionDescriptorSuppressHiddenAppsKey,
            [NSString stringWithFormat:@"bundleIdentifier in {%@}", enabledList],
            ALSectionDescriptorPredicateKey
        , nil],

        [NSDictionary dictionaryWithObjectsAndKeys:
            @"Available Applications", ALSectionDescriptorTitleKey,
            @"ALCheckCell", ALSectionDescriptorCellClassNameKey,
            iconSize, ALSectionDescriptorIconSizeKey,
            @YES, ALSectionDescriptorSuppressHiddenAppsKey,
            [NSString stringWithFormat:@"not bundleIdentifier in {%@}", enabledList],
            ALSectionDescriptorPredicateKey
        , nil]
     , nil];

It crashes in updateIndexPath from ALApplicationTableDataSource.m because updateIndexPath is called when _displayIdentifiers is empty. In my code above, when enabledList is an empty string, the first section of _dataSource.sectionDescriptors is an empty array.

In v1.5.11, the equivalent method, updateCell, does not ever get called when _displayIdentifiers is empty.

One simple way to fix it seems to be to change the if statement in updateIndexPath:
if (_displayIdentifiers.count > 0 && [displayIdentifier isEqual:[_displayIdentifiers objectAtIndex:indexPath.row]] && newIconSize == iconSize) {

Another way to fix it would be to figure out why updateIndexPath in v1.5.12 gets called with an empty _displayIdentifiers array but updateCell in v1.5.11 does not and keep it from happening.

Load times when used in a NC Plugin

Sorry to post another issue.

I currently use this plugin in a Notification centre plugin, it works well but if I try and open it straight away the SpringBoard locks up for around 2 minutes. When removing the AppList ties the problem disappears.

Can you help?

Errors when compiling

When i compile i get unable to find g++-4.2, i created a symlink to g++. But now i get this (sorry for the length):

Making all for library libapplist...
 Compiling ALApplicationList.m...
In file included from /Users/jack/Documents/AppList/framework/include/UIKit/UIKit2.h:164,
                 from /Users/jack/Documents/AppList/framework/include/MessageUI/MessageUI-Structs.h:8,
                 from /Users/jack/Documents/AppList/framework/include/MessageUI/ComposeRecipient.h:9,
                 from /Users/jack/Documents/AppList/framework/include/ChatKit/CKMailComposeRecipient.h:6,
                 from /Users/jack/Documents/AppList/framework/include/ChatKit/ChatKit.h:41,
                 from /Users/jack/Documents/AppList/framework/include/SpringBoard/SpringBoard-Structs.h:13,
                 from /Users/jack/Documents/AppList/framework/include/SpringBoard/SpringBoard.h:8,
                 from ALApplicationList.m:5:
/Users/jack/Documents/AppList/framework/include/UIKit/UIViewController2.h:185: error: duplicate declaration of method ‘-presentedViewController’
In file included from /Users/jack/Documents/AppList/framework/include/UIKit/UIKit2.h:385,
                 from /Users/jack/Documents/AppList/framework/include/MessageUI/MessageUI-Structs.h:8,
                 from /Users/jack/Documents/AppList/framework/include/MessageUI/ComposeRecipient.h:9,
                 from /Users/jack/Documents/AppList/framework/include/ChatKit/CKMailComposeRecipient.h:6,
                 from /Users/jack/Documents/AppList/framework/include/ChatKit/ChatKit.h:41,
                 from /Users/jack/Documents/AppList/framework/include/SpringBoard/SpringBoard-Structs.h:13,
                 from /Users/jack/Documents/AppList/framework/include/SpringBoard/SpringBoard.h:8,
                 from ALApplicationList.m:5:
/Users/jack/Documents/AppList/framework/include/UIKit/UISearchBar2.h:45: error: duplicate declaration of method ‘-backgroundImage’
/Users/jack/Documents/AppList/framework/include/UIKit/UISearchBar2.h:45: error: duplicate declaration of method ‘-setBackgroundImage:’
cc1obj: warnings being treated as errors
ALApplicationList.m: In function ‘-[ALApplicationList copyIconOfSize:forDisplayIdentifier:]’:
ALApplicationList.m:106: warning: implicit declaration of function ‘CGImageSourceCreateWithData’
ALApplicationList.m:106: warning: initialization makes pointer from integer without a cast
ALApplicationList.m:107: warning: implicit declaration of function ‘CGImageSourceCreateImageAtIndex’
ALApplicationList.m:107: warning: assignment makes pointer from integer without a cast
ALApplicationList.m: In function ‘-[ALApplicationListImpl _remoteGetIconForMessage:userInfo:]’:
ALApplicationList.m:206: warning: implicit declaration of function ‘CGImageDestinationCreateWithData’
ALApplicationList.m:206: warning: initialization makes pointer from integer without a cast
ALApplicationList.m:207: warning: implicit declaration of function ‘CGImageDestinationAddImage’
ALApplicationList.m:209: warning: implicit declaration of function ‘CGImageDestinationFinalize’
make[2]: *** [.theos/obj/ALApplicationList.m.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [libapplist.all.library.variables] Error 2

How to add library

Can someone explain how to incorporate this library? I've never made a jailbreak app, so I don't know how to add it to my app.

'prefs.h' file not found

Compiling ALApplicationPreferenceViewController.m (armv7)...
ALApplicationPreferenceViewController.m:6:9: fatal error: 'prefs.h' file not found

import "prefs.h"

    ^

1 error generated.

What should i do to success making this project?

I have Xcode5.0 as Xcode.app and Xcode4.6 as Xcode_Legacy.app.
Frist make error:
2014-04-19 5 05 35

a lot of similar error reporting ......

Then I remove the armv6 option for libapplist and make again, new error appears:
2014-04-19 5 09 02

And i discover that the SBApplication.h in your frame work requires DEPLOYMENT_TARGET=3.0, because:

if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2

-(NSString_)pathForIcon;
-(NSString_)pathForSmallIcon;
-(id)spotlightIcons;
-(void)flushSnapshotsForAllRoles;
-(BOOL)isPrerenderedIcon;
-(void)_sendCurrentDeviceOrientation;

endif

So, i was confused what should i do to build this project?

Create tags and releases for 1.5.8 and 1.5.9

From the git log, I can see comments for official releases of 1.5.8 and 1.5.8. These haven't been tagged in git and the corresponding releases haven't been created on GitHub. This was done prior to that point. Is this just an oversight or has your release process changed?

Obviously not a big issue for anyone, since we can just check out the code at the appropriate git revision and get the header files corresponding to those releases.

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.