This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit c4d72b18d89b0c4c12880f6364bd7edde5803c3a
tree 35e35c624378a9e3711846c9e0986f45cebe94f6
parent 671c8872e460e0f0de6f90acb413ab0150563495
tree 35e35c624378a9e3711846c9e0986f45cebe94f6
parent 671c8872e460e0f0de6f90acb413ab0150563495
| name | age | message | |
|---|---|---|---|
| |
BlueBadge.h | ||
| |
BlueBadge.m | ||
| |
MIT-LICENSE | Wed Oct 22 06:28:15 -0700 2008 | |
| |
MultipleDownload.h | ||
| |
MultipleDownload.m | ||
| |
README.textile |
README.textile
MultiDownload class
To initialize and start the download:
self.urls = [NSMutableArray arrayWithObjects:
@"http://maps.google.com/maps/geo?output=json&q=Lai+Chi+Kok,Hong+Kong",
@"http://maps.google.com/maps/geo?output=json&q=Central,Hong+Kong",
@"http://maps.google.com/maps/geo?output=json&q=Wan+Chai,Hong+Kong",
nil];
self.downloads = [[MultipleDownload alloc] initWithUrls: urls];
self.downloads.delegate = self;
For processing the download, use MultiDownload delegates:
- (void) didFinishDownload:(NSNumber*)idx {
NSLog(@"%d download: %@", [idx intValue], [downloads dataAsStringAtIndex: [idx intValue]]);
}
- (void) didFinishAllDownload {
NSLog(@"Finished all download!");
[downloads release];
}
BlueBadge class
It uses CoreGraphic to draw a blue badge similar to the mail count in Mail.app. To initialize:
BlueBadge *blueBadge = [[BlueBadge alloc] initWithFrame: rect];
[cell addSubview:blueBadge];
[blueBadge release];
When you need to update the count:
[blueBadge drawWithCount: numOfMail];








