From e86e276a14c9d2f6cc511f4be78755131b02869a Mon Sep 17 00:00:00 2001 From: tlrobinson Date: Tue, 30 Sep 2008 15:44:04 -0700 Subject: [PATCH] CPJSONPConnection documentation note --- Foundation/CPJSONPConnection.j | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Foundation/CPJSONPConnection.j b/Foundation/CPJSONPConnection.j index 0f529d39b..e00a33ee6 100644 --- a/Foundation/CPJSONPConnection.j +++ b/Foundation/CPJSONPConnection.j @@ -24,6 +24,15 @@ import CPJSONPConnectionCallbacks = {}; +/* + Important note: CPJSONPConnection is only for JSONP APIs. + If aren't sure you need + JSONP, + you most likely don't want to use CPJSONPConnection, but rather the more standard + CPURLConnection. CPJSONPConnection is designed for cross-domain + connections, and if you are making requests to the same domain (as most web + applications do), you do not need it. +*/ @implementation CPJSONPConnection : CPObject { CPURLRequest _request;