Re: Having troubles implementing categories
Re: Having troubles implementing categories
- Subject: Re: Having troubles implementing categories
- From: Angela Brett <email@hidden>
- Date: Mon, 11 Nov 2002 20:30:55 +1300
#import "NSMutableAttributedStringGrep.h"
//etc...
- (void)doTheClean:(NSMutableAttributedString *) myStr
{
[myStr checkFirstChar:@"a" replaceWith:@"b"];
}
However, whenever it gets to this last line, the program halts
execution and gives the following errors:
2002-11-11 20:06:48.521 TypographicText X[2074] *** -[NSIdEnumerator
checkFirstChar:replaceWith:]: selector not recognized
2002-11-11 20:06:48.528 TypographicText X[2074] *** -[NSIdEnumerator
checkFirstChar:replaceWith:]: selector not recognized
In other words, my categories haven't gone in right... why not?
I don't think there'a anything wrong with the categories, it looks
like myStr is an NSIdEnumerator instead of an
NSMutableAttributedString. Perhaps it was released and another object
is using that memory.
Hey, it's another kiwi! :)
--
Angela Brett
email@hidden
http://acronyms.co.nz/angela
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.