Re: Newbie Question on a method signature
Re: Newbie Question on a method signature
- Subject: Re: Newbie Question on a method signature
- From: Michael Watson <email@hidden>
- Date: Wed, 4 Jun 2008 16:34:57 -0400
It's not the method order, it's declaration vs definition. The
compiler scans the file top to bottom, so you must declare a method's
prototype before you actually use it anywhere, otherwise the compiler
will give you a warning because it hasn't seen the protoype yet.
--
m-s
On 04 Jun, 2008, at 16:26, James Cicenia wrote:
Wow..
I didn't know the order of methods was important.
thanks
James
On Jun 4, 2008, at 3:20 PM, Hamish Allan wrote:
On Wed, Jun 4, 2008 at 9:14 PM, James Cicenia <email@hidden>
wrote:
why does it tell me:
warning: (Messages without a matching method signature will be
assumed to
return 'id' and accept...
I'm guessing your method's definition comes after the code that uses
that method, and you haven't declared it in the header file.
Hamish
_______________________________________________
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:
@bungie.org
This email sent to email@hidden
_______________________________________________
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