• 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: static class variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static class variable


  • Subject: Re: static class variable
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 18 Jul 2002 15:44:33 +0200

On Thursday, July 18, 2002, at 03:12 , zauhar wrote:

Bill, the static declarations need to be outside (before) the '@interface'
declaration. That worked fine for me.

Wrong. That way, you get an extra variable in each module which imports the header, and I am pretty sure that is not what you wanted.

The correct placement is in the appropriate .m file. They can be inside or outside @implementation -- the compiler does not care.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: static class variable
      • From: zauhar <email@hidden>
References: 
 >Re: static class variable (From: zauhar <email@hidden>)

  • Prev by Date: Re: Re(2): [Seriously OT]Mac.com 60 days and counting
  • Next by Date: Notification problem
  • Previous by thread: Re: static class variable
  • Next by thread: Re: static class variable
  • Index(es):
    • Date
    • Thread