Well I’m currently calling a method that requires one char input method, but I the data for it is loaded from a file than putted into an array and then I want to convert one of the array’s elements to an const char (all the array’s elements are URL’s). What basically I’m trying to do is to make the program to load a specific file and then put the lines separately into the array’s elements (I mean: 1 line = 1 new array element), and then I made a for loop like this:
NSUInteger nElements = [array count];
int i;
for (i = 0; i<nElements; i++) {
const char* urlName = [[array objectAtIndex:i] cStringUsingEncoding:NSUTF8StringEncoding]; // I don't know if this is correct but don't works :)
}
If it’s an array of
NSURLobjects you’d have to convert them to strings like this: