Created
March 25, 2009 22:24
-
-
Save geoffgarside/85760 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
// KMLoginResponse inherits from KMReponse | |
- (void)request:(KMRequest*)request didReceiveResponse:(KMResponse*)theResponse | |
{ | |
[request release]; | |
if ([delegate respondsToSelector:@selector(client:didReceiveResponse:)]) { | |
[delegate client:self didReceiveResponse:theResponse]; | |
} | |
// I think this fails as theResponse comes in as a KMResponse | |
if ([theResponse isKindOfClass:[KMLoginResponse class]]) { | |
KMLoginResponse *r = (KMLoginResponse*)theResponse; | |
if ([delegate respondsToSelector:@selector(client:didLoginAsStaff:)]) { | |
[delegate client:self didLoginAsStaff:[r currentStaffMember]]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment