I haven't run into this in such a long time that I completely forgot
this could still occur. While I do wish it wasn't necessary to do the
cast, it does solve the problem.
So this works as expected:
AMWorkflow* workflow = [ (AMWorkflow*)[AMWorkflow alloc]
initWithContentsOfURL:fileURL error:&crea
On Apr 18, 2010, at 2:56 PM, Mark Munz wrote:
> If I try to create an AMWorkflow using the initContentsWithURL:error:
> method, I get a warning.
> warning: incompatible Objective-C types 'struct NSError **', expected
> 'struct NSDictionary **' when passing argument 2 of
> 'initWithContentsOfURL:e
If I try to create an AMWorkflow using the initContentsWithURL:error:
method, I get a warning.
- (id)myRunWorkflowAtURL:(NSURL*)fileURL withInput:(id)workflowInput
error:(NSError**)error
{
NSError* createError = nil;
AMWorkflow* workflow = [[AMWorkflow alloc]
initWithContentsOfURL:fileURL e