Архив за February, 2012:
Рубрики: iOS, Mac OS X on Feb.28, 2012
Copy from blog.ablepear.com. If you’ve done any Objective-C programming, you’ve seen the NSString literal syntax: 123456// NSString literal NSString *name1 = @"Lana Kane"; // creating NSString from a C string literal NSString *name2 = [NSString stringWithCString:"Sterling Archer" [...]
Теги: literal, LLVM 4.0, Mountain Lion, objective-c, OS X, Xcode 4.4
Рубрики: iOS, Mac OS X on Feb.08, 2012
I rewrite one class with async connection, and add progress block and pause/resume. Example usage: 123456789101112131415NSString *comboUrl = @"http://support.apple.com/downloads/DL1484/en_US/MacOSXUpdCombo10.7.3.dmg"; AsyncURLConnection *aConnection = [AsyncURLConnection request:comboUrl completeBlock:^(NSData *data, NSString *url) { [data writeToFile:filename atomically:NO]; [...]
Теги: AsyncURLConnection, blocks, NSMutableURLRequest, NSProgressIndicator, pause, resume, URLConnection, User-Agent, __block
Рубрики: Mac OS X on Feb.02, 2012
More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:
Теги: ANSI, GeekTool, Mac OS X, Terminal, Twitter
Рубрики: Mac OS X on Feb.02, 2012
If album does not has artwork: Download theme
Теги: album art, Bowtie, iTunes, theme