Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/akosmatr/www/akosma.com/wp/wp-includes/plugin.php on line 600

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/akosmatr/www/akosma.com/wp/wp-includes/plugin.php on line 600
May, 2010 | akosma
May 2010
SunMonTueWedThuFriSat
« Apr Jun »
 1
2345678
9101112131415
16171819202122
23242526272829
3031 

Month May 2010

initWithContentsOfURL: Methods Considered Harmful

As I promised on Twitter, here’s a small discussion about the problems brought by the “initWithContentsOfURL:” family of methods. A quick search in the Xcode documentation browser brings in an interesting list of classes including this initializer (with or without additional parameters): NSArray NSManagedObjectModel NSData NSDictionary NSXMLParser NSMappingModel NSString AVAudioPlayer Don’t get me wrong, the […]