• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Javascript to Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Javascript to Objective-C


  • Subject: Javascript to Objective-C
  • From: Kishore <email@hidden>
  • Date: Mon, 3 Dec 2007 10:57:06 +0530

Hi All,

I am a newbie in URLLoading system in Cocoa. I got a requirement for converting some javascript code to Cocoa (Objective-C).

I tried to implement by studying URL Loading System (Cocoa), but I couldn't get the result. Please help me in converting this js code to Objective-C (Cocoa).

Here is my Javascript code:

var xmlReq = NewHttpObject();
var date = new Date();
xmlReq.open("POST", "abc.cgi", false);
xmlReq.setRequestHeader('Content-Type', 'text/html; charset=UTF-8');
xmlReq.send("&command="+command+"&date="+date);


	var result = xmlReq.responseText;


Thanks,
Kishore



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Javascript to Objective-C
      • From: Ian was here <email@hidden>
  • Prev by Date: Re: CoreAnimation scene becomes blurry after scrolling NSScrollLayer?
  • Next by Date: Re: CoreAnimation scene becomes blurry after scrolling NSScrollLayer?
  • Previous by thread: Re: default write ... for turning on GUI scripting?
  • Next by thread: Re: Javascript to Objective-C
  • Index(es):
    • Date
    • Thread