-
-
Save caged/85761 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 ([[KMLoginResponse class] isKindOfClass:[theResponse 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