Cocoa uses objects, as it can key off anything (unlike C# which has generics)
Just just put a string in there. NSString is an NSObject On Mon, Sep 12, 2011 at 16:55, coderprojects <[email protected]> wrote: > 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-to-MonoTouch-tp3807631p3807786.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
