bits about life, coding and stuff
My styled text disappeared sometimes. I tracked down the problem. You’re not allowed to have bare ampersands in the styled text. Replace them with the html-encoded variant and everything works fine. // fix styled text for apersand problems styledText = [styledText stringByReplacingOccurrencesOfString:@"&" withString:@"&"]; Other than that, TTStyledText is plain awesome, so is the [...]
Just had a gotcha trying to compile one of my projects on OS4. NSDateFormatter refused to parse dates, just returned zero. After further investigation, the problem was an almost unnoticeable difference in the date format: 2010-05-17T19:08:11+02:00 But the unicode standard needs a +0200, thus NO Semicolon. NSDateFormatter for 10.5 and OS3 just silently quit parsing, and [...]
OmniGroup has released some nifty stuff. OmniUI/iPad: – First release of this framework! – Includes a bunch of features from our iPad apps – Document picker, basic document-based application support – CoreText-based text editor (still a work in progress, but a great start) – We’ll be working more on performance for large blobs of text, [...]
Awesome: Dashboard for iPad is now on GitHub! The reason is not that awesome. It was rejected for “Contradicting iPad’s User Experience”
Damn. Didn’t knew about mutableCopy. NSArray * foo = SomeFunctionReturningAnNSArray(); NSMutableArray * bar = [foo mutableCopy]; [foo release]; What other treasure lie around the Foundation? NSMutableArray *foo = SomeFunctionReturningAnNSMutableArray(); NSArray * bar = [foo copy]; [foo release]; That’s actually pretty useful! NSArray is both faster and needs less memory than his mutable counterpart.