I am trying to port an objc application that uses Facebook KVOController for Swift. I was asked to consider RC3 as an alternative and faster approach. I have read several blogs and I am invited to try. But most documents and blogs seem to concentrate on sockets and timers as examples. So I have two simple questions right now:
1) For an objc fragment of type:
[self.KVOController observe: self.site keyPath: @"programs" options: NSKeyValueObservingOptionInitial block:^(id observer, id object, NSDictionary *change) { [self.tableView reloadData]; }];
What is an easy way to rewrite this using the RC3 API? And what is the RC3 equivalent for self.KVOController unobserve: self.site , which happens when this view is unloaded?
2) He recommended using Carthage to capture RC3 code. Can I safely mix Cartfile with a project that uses cocoa pods already for Alamofire and SwiftyJSON ?
swift key-value-observing reactive-cocoa-3 carthage reactive-cocoa
Travis griggs
source share