Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -(void)observeValueForKeyPath:(CPString)keyPath ofObject:(id)object change:(CPDictionary)change context:(void)context
  2. {
  3. if ( [keyPath isEqualToString:@"currentStream"] ) {
  4. [messages removeAllObjects];
  5. [[StockTwitsAPI sharedController] getMessagesForStream:[object currentStream] symbol:NO delegate:self];
  6. }
  7. else if ( [keyPath isEqualToString:@"currentSymbol"] ) {
  8. [messages removeAllObjects];
  9. [[StockTwitsAPI sharedController] getMessagesForStream:[object currentSymbol] symbol:YES delegate:self];
  10. }
  11. }
Add Comment
Please, Sign In to add comment