Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Addresponse - adding to memory only (XCode)

I'm trying to connect my project to a php file but every time this shows:

ADDRESPONSE - ADDING TO MEMORY ONLY

I have never seen it before. this is the code i Use:

//Gets the php
FindURL = [NSString stringWithFormat:@"http://domain.com/Myfile.php?username=%@", Username.text];
// to execute php code
URLData = [NSData dataWithContentsOfURL:[NSURL URLWithString:FindURL]];

// to receive the returend value
DataResult = [[NSString alloc] initWithData:URLData encoding:NSUTF8StringEncoding];

NSLog(@"%@",DataResult);

What can i do?

Thanks in advance

Update code:

- (IBAction)UpdateList:(id)sender{



    NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://domain.com/Myfile.php"]
        cachePolicy:NSURLRequestUseProtocolCachePolicy
        timeoutInterval:15.0];
    NSURLConnection *Connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
    if (Connection) {
        //Connect
    }else{
        //Error
    }

}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
    DataResult = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

    NSLog(@"%@", DataResult);

}
like image 286
Anders Kortegaard Avatar asked Nov 04 '22 05:11

Anders Kortegaard


1 Answers

I've had the same issue - check out the following, this might help you: Log Messages I didn't asked for in Xcode 4.5 with iOS 6.0

I haven't found a solution so far, but since I now know that this Log is produced by the OS, I no longer look for its origin in my source :)

like image 198
Toubey Avatar answered Nov 11 '22 09:11

Toubey