Murillo Nicacio de Maraes
Murillo Nicacio de Maraes
Are there any ways to make several signals into one signal instead of flatten them in Reactive Cocoa
If I understood it correctly. All you have to do is merge the three bundles. As in `[RACSignal merge:@[bundleOne, bundleTwo, bundleThree]]` The resulting signal should send next whenever any of...
A solution may be `PropertyOf` where: ``` swift enum FutureValue { case NoValue indirect case Value(T) // Or: case Value(Box) } ``` That seems to satisfy everything you asked for.
@neilpa Very True. `PropertyOf` has always sufficed for me too. There might advantages to using a different name for the same abstraction, though. Especially when trying to be didactic. For...
`map` is meant to transform values. I usually try to avoid inserting side-effecting code inside a `map` block. And since you're not transforming the value at all, it's probably not...
The docs also talks about a different (more RACish) way of doing what you want, however. ``` Objective-C RACSignal *shouldShowSeparatorSignal = [RACObserve(self, viewModel.title) map:^NSNumber *(NSString *value) { return @([title isEqualToString:@"NEWS"]);...
What you're describing is the Concat operation. Depending on your needs (and API) there are a few ways to use it. Check out the [Docs](https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/Documentation/BasicOperators.md#concatenating).
It looks like what you are looking for is `RACMulticastConnection`. Like this: ``` Objective-C RACMulticastConnection *connection = [RACObserve(self, item) publish]; ``` Then use `connection.signal` as you would your `signal1` and...
The idea is is still the same. But instead of calling `publish` on `RACObserve(self, item)` call it on `[[[signal1 ...] flattenMap...] publish]` i.e. Call `publish` on whatever work you want...
From what I understand `timer` only start sending events after the first interval has passed. And `combineLatest` only sends events once both Producers have sent at least one event. Try...
Yes, the same thing is happening to me on a brand new project.