github / Rebel

Cocoa framework for improving AppKit
Other
1.13k stars 111 forks source link

Crashes on 10.8 due to dealloced rbl_viewController #114

Closed jaredholdcroft closed 11 years ago

jaredholdcroft commented 11 years ago

Hi,

I'm fairly new to OS X dev and even newer to Rebel so apologies if this is a dumb question. We use Rebel, via Cocoapods, and are seeing several crashes on 10.8 due to the rbl_viewController being nil. It's fine on 10.9, untested on 10.7.

It happens on line 61 of the NSView+RBLViewControllerAdditions:

    if ([self.rbl_viewController isKindOfClass:[RBLViewController class]]) {

If I check for nil at the same time then the crashes stop and everything works fine. I'm presuming that I'm doing something wrong to cause this but I'm not sure what - have you seen this before?

Thanks.

jspahrsummers commented 11 years ago

Do you have a full crash log you can attach?

jaredholdcroft commented 11 years ago

Hi. I got this slight wrong so i'm going to close this and open a new issue. I'll attach a crash log.