On Jan 6, 2010, at 7:33 PM, Shane wrote: > 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:
The problem is likely that -proxyForTarget: returns an `id`. > 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. NSManagedObjectContext defines -(BOOL)save:(NSError **)error; If -proxyForTarget: returns an id, then the compiler doesn’t know which of the available signatures you really meant to use. You can either rename your -save: method, or cast the result of -proxyForTarget to the static type you are sending the message to. - Jim_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
