duplicate method found, but can't locate
duplicate method found, but can't locate
- Subject: duplicate method found, but can't locate
- From: Shane <email@hidden>
- Date: Wed, 6 Jan 2010 18:33:19 -0600
I'm getting this error from my main app controller which is trying to
send a message to a thread on a queue (using YAMessageQueue).
[[networkQueue proxyForTarget:networkServer] save:[self saveFile]];
Cannot convert 'NSString*' to 'NSError**' in argument passing
I have no idea where it thinks it needs to convert to NSError**. [self
saveFile] returns an NSString*. In my server file I have the
following:
---
@protocol ServerMethods
- (void) save:(bycopy NSString *) saveFile;
// and when compiling, I get the following warning for this line.
Also found '- (void) save:(NSString *)saveFile'
@implementation NetworkServer
- (void) save:(bycopy NSString *) saveFile
{
[self gl_save:saveFile];
}
// ...
@end
---
I can see that there seems to be some confusion with the save: method
in the @protocol because the warning seems to imply that it found
'another' save: by saying 'Also found …'.
But I have no idea where it's finding the save: method that needs to
use NSError**, if that is the case.
Any help much appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden