Re: Newbie Question on a method signature
Re: Newbie Question on a method signature
- Subject: Re: Newbie Question on a method signature
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 4 Jun 2008 13:37:39 -0700
On Wed, Jun 4, 2008 at 1:26 PM, James Cicenia <email@hidden> wrote:
> Wow..
>
> I didn't know the order of methods was important.
They aren't really.
It is just a matter of the compiler seeing the declaration for a
method/function before it is used. You normally do that by declaring
the method in the classes interface block or in a private category
against your class (or class continuation under Objective-C 2.0) that
is included before code that uses the method.
If you omit the declaration but have the definition of method in the
implementation block before code that needs to use the method then the
definition acts as an implicit declaration of that method.
-Shawn
_______________________________________________
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