Questions tagged [racsignal]
42 questions
0
votes
0 answers
RACSignal: Signal is never invoked
I have the following code which is invoked by another signal:
- (RACSignal *)uploadFormItemAttachment_SO:(MyManagedAttachment *)attachment attachmentHeader:(MyFormItemAttachmentHeader*) attachmentHeader
{
RACSignal* signal = [RACSignal…

user1309226
- 739
- 1
- 10
- 31
0
votes
1 answer
ReactiveCocoa Ambiguous reference to member RACSignal
I'm trying to return an RACSignal that I can use in my objective-c code, I've tried various ways. EX:
@objc
class func getPosts() -> RACSignal {
let (signal, observer) = Signal.pipe()
return signal.toRACSignal()
…

Cristian Gómez
- 1
- 2
0
votes
1 answer
Subscribe issue with RACSignal
I am using the MVVM paradigm in my iOS with RACSignal as well. So far things have worked out great. However I am experiencing a problem when subscribing to signals. On the first subscription things work fine. However further subscriptions don't.…

Robert J. Clegg
- 7,231
- 9
- 47
- 99
0
votes
2 answers
How to send the RACSignal to cell's viewMode when click a button outside of the Cells
I have a button on navigation bar, that named "Edit". And a UICollectionView show with some content.
To click the "Edit" button will make into a "EditMode", and the button's title become "Done", the UICollectionView's cell should also updated.…

JerryZhou
- 4,566
- 3
- 37
- 60
0
votes
0 answers
ReactiveCocoa nested map
[[[[[self.textfield.rac_textSignal throttle:0.5] flattenMap:^RACStream *(id value) {
//call api
return [API signal];
}] flattenMap:^RACStream *(NSArray *result) {
result = [result.rac_sequence take:150].array;
//result is json array
…

Boska
- 21
- 1
0
votes
1 answer
how to wait until the task is completed and then return a signal, reactive cocoa
-(RACSignal*)finalPackage {
RACSignal *endPoint = [[DGConfiguration sharedInstance].apiConfiguration
urlTemplate:DGAPIUrlLocalWatchList];` // 1.
return [[endPointRequestSignal map:^id(NSString *endPoint) { // 2.
return service([NSURL…

tonytran
- 1,068
- 2
- 14
- 24
0
votes
1 answer
how to get item from rac_sequence, reactive cocoa, ios
I am parsing the needed links which is in the header of the response from the server. My header looks like
Access-Control-Allow-Origin → * Age → 0 Cache-Control →
private,must-revalidate
Connection → keep-alive
Content-Encoding → gzip …

tonytran
- 1,068
- 2
- 14
- 24
0
votes
1 answer
Prevent duplicate subscribers with RACSignal
Is there a way to prevent duplicate RACSignal subscribers?
Right now I've managed to fix this in a way I would like to see simplified.
I've got my signal:
ExampleAPI.ProgressList().signalValue.doCompleted({ () -> Void in
…

Antoine
- 23,526
- 11
- 88
- 94
0
votes
1 answer
RacSignal disposed automatically
I have merged some racsignals into a single Racsignal. And subscribed the merged signal. Now if any of the signals that i have merged sends error event all the merged signals are disposed. I want all the signals to continue there executing if any…

user3168555
- 81
- 1
- 4
0
votes
1 answer
Chaining RACSignals and rollback
I'm relatively new to ReactiveCocoa and was wondering how to chain a sequence of REST GET calls together so they perform in order. If one of the calls errors, then the whole process will roll back.
So I'm using pod 'AFNetworking-RACExtensions',…

elprl
- 1,940
- 25
- 36
0
votes
1 answer
How to use RACMulticastConnection for app components notification
Short version:
Is it possible to use RACMulticastConnection in the same way as NSNotificationCenter? I mean to keep the subscribed blocks valid even for another call [connection connect]?
Long version:
Among different subscribers I share a reference…

Vladimír Slavík
- 1,727
- 1
- 21
- 31
0
votes
2 answers
Defer RACSignal until UIScrollView is not dragging, tracking or decelerating
Is this OK?
- (RACSignal *)deferRefreshSignalUntilScrollViewIsNotBusy:(RACSignal *)infiniteSignal
{
return [RACSignal createSignal:^RACDisposable *(id subscriber) {
__block BOOL disposed = NO;
RACDisposable…

hfossli
- 22,616
- 10
- 116
- 130