December 2009
7 posts
12 tags
MapKitDragAndDrop 2.0
Update Version 3.2 with new sample for iOS 4.2 is available here.
I spent almost one week to rewrite my previous MapKit sample with cool CoreAnimation effects on those little pins that just work like Maps.app on iPhone. The animation part is very similar to current MapKit’s private API design: using class methods to generate animations and apply to annotation view when touch events...
6 tags
Suppress unused parameter warning
If you turned on the unused parameter warning in gcc, and legitimately don’t want to use the argument, here’s the way to deal with, the #pragma unused:
- (void)applicationWillTerminate:(UIApplication *)application {
#pragma unused(application)
}
Correct me if I was wrong, the pragma directive has no effect on the resulting compiled code (through it’s compiler specific.)
6 tags
This must be a joke
Since Xcode is telling me: “In ibGoogleAds.a, file is not of required architecture.” I do a quick check:
% file libGoogleAds.a
libGoogleAds.a: Mach-O 64-bit dynamically linked shared library x86_64
How you gonna to use this on iPhone?
6 tags
Dreams Come True 騙錢的方式就是在每張專輯裡面附上 LOVE LOVE LOVE。
2 tags
What do you expect?
Daughter: I want that hamster~
Father: Who's gonna to take care of that little thing?
Daughter: What do you expect?
Father: .....
5 tags
Hack of the Day
SweetFM is an open source Last.fm player for Mac OS X. It has a “lovely” feature exports radio tracks to your iTunes.
Update
This hack had been merged into main tree of SweetFM, you can check the commit here. Thanks, @tenpaiyomi.
Limitation
However, due to the limitation of the Last.fm API, the radio playlist (in XSPF format) does not contain track’s genre. In fact,...
3 tags
Elements of Programming Style →
by Brian Kernighan on July 13, 2009.