There were some dark times during the 1990s for Apple. They fundamentally had a technology stack though. They had vast amounts of technology that made them look like an incredibly valuable target for purchase.
There also had an army of loyal supporters. Supporters longing for their return to greatness. That and they had, in ways, carved out a safe harbor, they didn't have to compete head to head with MS or the clone makers. We're talking about a rare turn around though, that doesn't happen often. Comparing companies to Apple is going to be the new Godwin's law..
RIM is just in a different spot, the game changed and they didn't. They had some good stuff but the rules are just so different, if they made a product that was on par with Android of iPhone, that's simply not enough.