rpetrich / AppList

Dynamic access to installed application list, their icons and simple preferences panes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load times when used in a NC Plugin

JW97 opened this issue · comments

commented

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?

JW97: Will need a code sample. I know of no performance issues when used in SpringBoard.

commented

I have a global variable of ALApplicationList that is set = nil and released in my dealloc.

My method for returning the images is:

- (UIImage *)getImageFoDisplayIdentifier:(NSString *)identifier
{
    if (!list)
    {
        list = [ALApplicationList sharedApplicationList];
    }

    UIImage *result = [list iconOfSize:ALApplicationIconSizeLarge forDisplayIdentifier:identifier];

    return result;
}

This has seemed to fix this problem compared to the list being local to the method

commented

it would appear this has only made the crash occur less often.

Are you doing this off the main thread?

commented

I'm running this after the plugin has appeared, a blank space is displayed while opening. Are you saying I should try and background this?

On 25 Feb 2012, at 01:27, Ryan Petrichreply@reply.github.com wrote:

Are you doing this off the main thread?


Reply to this email directly or view it on GitHub:
#3 (comment)

I'm saying that it should only be run from the main thread, not all of the methods are thread safe.

That code looks fine, and I see no evidence that AppList is a problem here. If you would like do debug further, please email me the full source that is integrating with AppList.

commented

Sent

On 26 Feb 2012, at 02:11, Ryan Petrichreply@reply.github.com wrote:

I'm saying that it should only be run from the main thread, not all of the methods are thread safe.

That code looks fine, and I see no evidence that AppList is a problem here. If you would like do debug further, please email me the full source that is integrating with AppList.


Reply to this email directly or view it on GitHub:
#3 (comment)