Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background checking #15

Open
luismarques opened this issue Dec 24, 2009 · 5 comments
Open

Background checking #15

luismarques opened this issue Dec 24, 2009 · 5 comments

Comments

@luismarques
Copy link

Clicking "Check Now" blocks the user interface (menu icon) for a few seconds.
The checking process should be done in a background thread or equivalent mechanism (GCD task, etc), so that clicking the icon is possible during the update process.

@hiroshi
Copy link
Owner

hiroshi commented Dec 26, 2009

I have a plan to solve this issue using NSThread (because GCD is only for Snow Leoprad and this is not a multi core performance issue).

@btennant
Copy link

btennant commented Jan 2, 2010

Consider using NSOperation if possible as it will leverage GCD where possible and is compatible on both Leopard and Snow Leopard.

@hiroshi
Copy link
Owner

hiroshi commented Jan 2, 2010

Thanks for mentioning NSOperation. I didn't know that new API since 10.5.

@btennant
Copy link

btennant commented Jan 2, 2010

No problem NSOperation works in conjunction with NSOperationQueue. It's a very nice abstraction for threading. I use it heavily in iPhone dev.

@btennant
Copy link

btennant commented Jan 3, 2010

I don't know why I didn't mention this before but what about simply using performSelectorInBackground: ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants