• 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
Category method "selector not recognized"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Category method "selector not recognized"


  • Subject: Category method "selector not recognized"
  • From: David Alter <email@hidden>
  • Date: Fri, 18 Aug 2006 11:10:32 -0700

I have created a very simple category for an object in a third party framework I'm using. But when I call the method I get "- [SomeDataObject recordID]: selector not recognized" Here is what I have

Interface:
#import <Cocoa/Cocoa.h>
#import "ThirdPartyFramework /SomeDataObject.h"

@interface SomeDataObject (MyRecordID)

- (NSString *) recordID;

@end


Implementation: #import "MyRecordID.h"

@implementation SomeDataObject (MyRecordID)

- (NSString *)recordID
{
	//do some stuff
	return retval;
}

@end


It all looks very simple to me, but the category never gets called. I get the following error


2006-08-18 10:45:16.682 TestApp[17075] *** -[SomeDataObject recordID]: selector not recognized [self = 0x3b10a0]

in the file that calls the category method I have #import "MyRecordID.h" and a #import "ThirdPartyFramework /SomeDataObject.h" at the top of the file.

any ideas?

Thanks for the help
-dave


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Category method "selector not recognized"
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: What's the fastest way to get icons for file/folders?
  • Next by Date: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName
  • Previous by thread: Re: Is there a way to change a buttons text color for the title?
  • Next by thread: Re: Category method "selector not recognized"
  • Index(es):
    • Date
    • Thread