There is a text field tf1 and there is a line of code

NSURLRequest *request=[NSURLRequest requestWithURL:NSURL URLWithString:@"qwe"] cashePolicy:NSURLRequestUseProtocolCashePolicy timeoutInterval:15.0]; 

How to make, instead of qwe there was what the user entered in tf1 ? Thank you in advance.

  • @ Sergey4590, To format a code, select it with the mouse and click on the button 101010 of the editor. - Vfvtnjd pm

1 answer 1

 NSURLRequest *req = [NSURLRequest requestWithURL: [NSURL URLWithString: [tf1 stringValue]] cashePolicy: NSURLRequestUseProtocolCashePolicy timeoutInterval: 15.0];