tags:

views:

26

answers:

1

I'm having some trouble using the RegexKit.framework. I've properly integrated it into my project and I want to use the NSString category methods to get an array of matches from a string. Though I have imported the the framework Xcode keeps complaining that "NSString may not respond to '-stringByMatching:'". Do I miss something when working with categories that come from a framework?

The lines where I get the warnings are these:

NSArray *links = [websiteContent componentsMatchedByRegex:linkRegex];
NSMutableString *titleValue = [result stringByMatching:titleRegex];

Thanks
–f

A: 

You probably need to do #import on your .m file

Alej
You mean the .h file? I tried that, but it didn't work. I switched from the library to RegexKitLite anyway. Now everything's fine. Thanks!
flohei