here's what I have:
Code:
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
@interface tScanner : NSScanner {
}
- (BOOL)scanPast:(NSString *)string;
@end
#import "tScanner.h"
@implementation tScanner
- (BOOL)scanPast:(NSString *)string
{
if (![self scanUpToString:string intoString:nil]) return NO;
if (![self scanString:string intoString:nil]) return NO;
return YES;
}
@end
and the program seems to get by
tScanner *scan = [[tScanner alloc] initWithString:];
but it crashes on the first scanUpToString:intoString:
if I switch it back to NSScanner, it works fine. I know I've subslcassed NS classes successfully before....someone throw me a bone please
PS. obviously it would be easier to do this the long way with NSScanner, but I hope to expand to other conveniences once I get this working