Well, this is embarrassing. You might have expected to find my homepage here. In fact I am currently too busy studying, writing iOS apps or working on other projectserver.org projects to create my own homepage. You may return whenever you like to check if that has changed somehow. Up to then, everything you find here is just a sophisticated twitter newsfeed. Enjoy.
This is just a very quick note about multithreading in iOS 4.0+. If you want to put a long-running task to the background but keep your users updated about the state of the task you can use this snippet.
// start background execution
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// do background work here (e.g. in a loop)
// everytime you want to update the ui call this
dispatch_async(dispatch_get_main_queue(), ^{
// update your ui here .. e.g.
[myUIProgressView setProgress:myProgress];
// you need to provide these variables yourself of course ;)
});
});
NIGHTNIGHT by DEDDY