New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RACAbleSelf syntax changed? #14
Comments
OK, after a fair bit of mucking about it looks like the [[[RACAbleSelf(self.urlToLoad) startWith:self.urlToLoad] distinctUntilChanged] subscribeNext:^(NSURL * newURL) {…}]; It looks like "self." is being prepended to the key path, and for me at least this is causing issues. |
Thanks for doing the detective work on this @tonyarnold! Does that also solve your NSKVODeallocate problem? I'd been thinking about removing |
Sadly, no. I'm still looking into that. RAC swizzles dealloc, right? I'm now seeing some messed up crashes where dealloc is called from different classes as various RAC'd objects deallocate! My luck: it is missing! |
Interesting... I'd be interested to look into it if you can share the code at all. I'm definitely starting to wonder if there's a RAC bug there. |
Here's a test project demonstrating the |
Yeah, something is quite wrong here: my UIApplicationDelegate was just deallocated when one of my view controllers using RAC was dismissed. What do you need to chase this down? It's happening in a private client project, so I can't share the source publicly but I'd be happy to give you as much information as you need short of that (or to share the project privately). |
I'm having issues with
RACAbleSelf
andRACAbleSelfWithStart
, whereby my class has a publicNSURL
propertyurlToLoad
:@property(nonatomic, strong) NSURL *urlToLoad;
However when I call the following (as shown in all the samples):
I get the following error:
I've tried changing it to just:
This works, but my app complains about observation info being leaked whenever the view controller is deallocated. Breaking on
NSKVODeallocateBreak
doesn't yield anything useful, but I assume that the NSURL instance is somehow outliving the view controller. Here's the errorAm I missing something really obvious here? The project uses ARC.
The text was updated successfully, but these errors were encountered: