• 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: Help with recursive includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with recursive includes


  • Subject: Re: Help with recursive includes
  • From: Michael Ash <email@hidden>
  • Date: Sat, 21 Feb 2009 19:39:46 -0500

On Sat, Feb 21, 2009 at 7:11 PM, Kiel Gillard <email@hidden> wrote:
> Towards the start of TMPSTLocalStore.m, you're declaring a static pointer
> within the @implementation. I didn't think you could do this, I thought you
> could only declare a static variable outside of the @implementation in the
> .m file.

Sure you can. All @implementation does is allow you to declare ObjC
methods. It has absolutely no effect on anything else, which has the
exact same meaning inside the @implementation block as outside.
Whether you put your global variables, functions, etc. inside or
outside is entirely a matter of taste.

(This is not strictly true. One difference is that functions inside
@implementation are allowed to access the private ivars of an object
of the class whose @implementation it's inside. But this is rarely
useful and in any case doesn't apply here.)

Mike
_______________________________________________

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: 
 >Help with recursive includes (From: Aaron Wallis <email@hidden>)
 >Re: Help with recursive includes (From: Kiel Gillard <email@hidden>)

  • Prev by Date: Re: NSNotificationCenter : multiple messages sent to the same observer?
  • Next by Date: Re: Help with recursive includes
  • Previous by thread: Re: Help with recursive includes
  • Next by thread: Re: Help with recursive includes
  • Index(es):
    • Date
    • Thread