• 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: Newbie Question on a method signature
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Newbie Question on a method signature (From: James Cicenia <email@hidden>)
 >Re: Newbie Question on a method signature (From: "Hamish Allan" <email@hidden>)
 >Re: Newbie Question on a method signature (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Newbie Question on a method signature
  • Next by Date: Re: Newbie Question on a method signature
  • Previous by thread: Re: Newbie Question on a method signature
  • Next by thread: Re: Newbie Question on a method signature
  • Index(es):
    • Date
    • Thread