Re: Warning with an initializer method of AMWorkflow

2010-04-19 Thread Mark Munz
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

Re: Warning with an initializer method of AMWorkflow

2010-04-18 Thread Ken Thomases
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

Warning with an initializer method of AMWorkflow

2010-04-18 Thread Mark Munz
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