On Wed, Jun 4, 2008 at 1:26 PM, James Cicenia <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to