Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)observeValueForKeyPath:(CPString)keyPath ofObject:(id)object change:(CPDictionary)change context:(void)context
- {
- if ( [keyPath isEqualToString:@"currentStream"] ) {
- [messages removeAllObjects];
- [[StockTwitsAPI sharedController] getMessagesForStream:[object currentStream] symbol:NO delegate:self];
- }
- else if ( [keyPath isEqualToString:@"currentSymbol"] ) {
- [messages removeAllObjects];
- [[StockTwitsAPI sharedController] getMessagesForStream:[object currentSymbol] symbol:YES delegate:self];
- }
- }
Add Comment
Please, Sign In to add comment