• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Having troubles implementing categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Having troubles implementing categories (From: Michael Norris <email@hidden>)

  • Prev by Date: [OT] Marketing advice
  • Next by Date: Re: How to stop listening on a port?
  • Previous by thread: Having troubles implementing categories
  • Next by thread: [SOLVED] popup menus at a specified position
  • Index(es):
    • Date
    • Thread