• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Warning with an initializer method of AMWorkflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning with an initializer method of AMWorkflow


  • Subject: Re: Warning with an initializer method of AMWorkflow
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 18 Apr 2010 15:01:39 -0500

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: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?

This is the same issue as in this recent thread <http://lists.apple.com/archives/cocoa-dev/2010/Apr/msg00816.html>.  There is a typecast involved in the solution, but probably not the one you're considering.

Cheers,
Ken

_______________________________________________

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

  • Follow-Ups:
    • Re: Warning with an initializer method of AMWorkflow
      • From: Mark Munz <email@hidden>
References: 
 >Warning with an initializer method of AMWorkflow (From: Mark Munz <email@hidden>)

  • Prev by Date: Re: iphone help - saving data
  • Next by Date: Re: Baffling Button Behavior
  • Previous by thread: Warning with an initializer method of AMWorkflow
  • Next by thread: Re: Warning with an initializer method of AMWorkflow
  • Index(es):
    • Date
    • Thread