Its [NSString stringWithContentsOfURL]. Note: its the capital 'O' (in Of) not small 'o' as given by you. Also Its a static method so cannot be used against an object.
Prabhu Beeman
2009-09-24 06:58:57
Its [NSString stringWithContentsOfURL]. Note: its the capital 'O' (in Of) not small 'o' as given by you. Also Its a static method so cannot be used against an object.
stringWithContentsofURL:
is a class method, not an instance method, so you have to use it as
[NSString stringWithContentsOfURL:myURL]
or if you want to allocate it yourself, you would do:
[[NSString alloc] initWithContentsOfURL:myURL]
but then you would have to release it later