Is there any way I can invoke paste from the code? I found the following code
but UIResponder doesn't have a paste method.
Art
@interface UIResponder(UIResponderInsertTextAdditions)
- (void) insertText: (NSString*) text;
@end
@implementation UIResponder(UIResponderInsertTextAdditions)
- (void)
Sorry I accidentally posted two times.
Sebastian answer the question.
I should have used NSMutableUrlRequest.
THe following worked.
NSMutableUrlRequest req = new NSMutableUrlRequest(url1);
req["User_Agent"] ="Mozilla/5.0
(Windows; U; Windows NT 6.0; en-U
I missed the NSMutableUrlRequest
NSMutableUrlRequest req = new NSMutableUrlRequest(url1);
req["User_Agent"] ="Mozilla/5.0
(Windows; U; Windows NT 6.0; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0";
That worked.
Thanks
Thanks for the reply
I tried it but header is null
setValue:@"Foobar/1.0" forHTTPHeaderField:@"User_Agent"];
is it possible to convert forHTTPHeaderField:@"User_Agent" to NSObject?
Thanks
Art
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Converting-ObjectiveC-code-t
Hi,
Thanks for the reply. I tried all
req["User_Agent"] ="foo"
Error CS0200: Property or indexer
`MonoTouch.Foundation.NSUrlRequest.this[string]' cannot be assigned to (it
is read-only)
req.SetValueForKey(nsObject, "foo");
requires NSobject and I don't know how to convert
forHTTPHeaderField:@
Hi
I tried it and getting the following
Error CS0200: Property or indexer
`MonoTouch.Foundation.NSUrlRequest.this[string]' cannot be assigned to (it
is read-only)
I am trying to convert the code in the following URL
http://stackoverflow.com/questions/478387/change-user-agent-in-uiwebview-ipho
Yes
Thank you
Art
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/seting-UIWebview-user-agent-objectiveC-question-tp3807602p3807638.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
Mono
Hi,
I am trying to convert the following code to .Net
NSString *urlAddress = @"http://www.amazon.com";;
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[requestObj setValue:@"Foo