Category method "selector not recognized"
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