Warning with an initializer method of AMWorkflow
Warning with an initializer method of AMWorkflow
- Subject: Warning with an initializer method of AMWorkflow
- From: Mark Munz <email@hidden>
- Date: Sun, 18 Apr 2010 12:56:15 -0700
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 error:&createError];
}
warning: incompatible Objective-C types 'struct NSError **', expected
'struct NSDictionary **' when passing argument 2 of
'initWithContentsOfURL:error:' from distinct Objective-C type
The 2nd parameter is documented as NSError** as documented in AMWorkflow.h
- (id)initWithContentsOfURL:(NSURL *)fileURL error:(NSError **)outError;
This appears to happen with either the 10.5 SDK or 10.6 SDK.
I've logged this bug ID# 7877547
I'd like to know how safe it is to ignore the warning or typecast to
remove the warning?
Not sure how else to create this object to work with AMWorkflowController.
Thanks.
--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________
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