Created
April 4, 2010 21:52
-
-
Save boucher/355732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)connectionDidReceiveAuthenticationChallenge:(CPURLConnection)aConnection | |
{ | |
_loginConnection = aConnection; | |
[[LoginPanel sharedLoginPanel] beginWithModalDelegate:self | |
didEndSelector:@selector(processLogin:result:context:) | |
contextInfo:nil]; | |
} | |
- (void)processLogin:(id)sender result:(const)result context:(id)contextInfo | |
{ | |
if(result == LOGIN_SUCCESS) | |
{ | |
[_loginConnection cancel]; | |
[_loginConnection start]; | |
} | |
else | |
[[_loginConnection delegate] connection:_loginConnection didFailWithError: [_loginConnection _XMLHTTPRequest].responseText]; | |
_loginConnection = nil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment