• 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: zauhar <email@hidden>
  • Date: Thu, 18 Jul 2002 09:51:34 -0400
  • Scubber-version: 1.7 (portal)

Curiously, what I described seems to be working fine, while putting the declarations in the .m file wouldn't compile. I will try it again.

Randy

On Thursday, July 18, 2002, at 09:44 AM, Ondra Cada wrote:


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




Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar


Discussion after watching Disney's "Lilo & Stitch":

DAD: "But why did the space aliens speak English, as opposed to French, or Swahili? And why did the one alien speak English with an Eastern European accent? I don't get it."

CATHERINE (age 7): "That's 'cause you don't have a good cartoon brain."
_______________________________________________
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.

References: 
 >Re: static class variable (From: Ondra Cada <email@hidden>)

  • Prev by Date: Notification problem
  • Next by Date: Newbie Question about Converting From NSTextField to NSData
  • Previous by thread: Re: static class variable
  • Next by thread: Posting events?
  • Index(es):
    • Date
    • Thread