API  1.0.0
CPJSONPConnection Class Reference

Allows cross domain connections using JSONP protocol. More...

#import <CPJSONPConnection.h>

+ Inheritance diagram for CPJSONPConnection:

Instance Methods

(void) - cancel
 
(id) - initWithRequest:callback:delegate:
 
(id) - initWithRequest:callback:delegate:startImmediately:
 
(void) - removeScriptTag
 
(void) - start
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray) - exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(id) - init
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(CPJSONPConnection+ connectionWithRequest:callback:delegate:
 
(CPJSONPConnection+ sendRequest:callback:delegate:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

Allows cross domain connections using JSONP protocol.

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.

Definition at line 2 of file CPJSONPConnection.h.

Method Documentation

◆ cancel()

- (void) cancel
implementation

Definition at line 145 of file CPJSONPConnection.j.

◆ connectionWithRequest:callback:delegate:()

+ (CPJSONPConnection) connectionWithRequest: (CPURLRequest aRequest
callback: (CPString callbackParameter
delegate: (id)  aDelegate 
implementation

Definition at line 55 of file CPJSONPConnection.j.

◆ initWithRequest:callback:delegate:()

- (id) initWithRequest: (CPURLRequest aRequest
callback: (CPString aString
delegate: (id)  aDelegate 
implementation

Definition at line 60 of file CPJSONPConnection.j.

◆ initWithRequest:callback:delegate:startImmediately:()

- (id) initWithRequest: (CPURLRequest aRequest
callback: (CPString aString
delegate: (id)  aDelegate
startImmediately: (BOOL)  shouldStartImmediately 
implementation

Definition at line 65 of file CPJSONPConnection.j.

◆ removeScriptTag()

- (void) removeScriptTag
implementation

Definition at line 134 of file CPJSONPConnection.j.

◆ sendRequest:callback:delegate:()

+ (CPJSONPConnection) sendRequest: (CPURLRequest aRequest
callback: (CPString callbackParameter
delegate: (id)  aDelegate 
implementation
Deprecated:

Definition at line 50 of file CPJSONPConnection.j.

◆ start()

- (void) start
implementation

Definition at line 86 of file CPJSONPConnection.j.


The documentation for this class was generated from the following files: