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

Re: define class variable


  • Subject: Re: define class variable
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 2 Aug 2002 17:11:09 +0200

On Thursday, August 1, 2002, at 11:39 , j o a r wrote:

Subject: Re: define class variable

Something like this:

@implementation MyClass
static NSString *myGlobalString = nil;

Note though that it is not a true class variable, for it would by shared by all subclasses. (Nevertheless, with a very high probability it is exactly what you wanted to -- true class variables are needed extremely rarely. If you happen to need one, check archives -- some months age I've posted the code.)
---
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.
References: 
 >Re: define class variable (From: j o a r <email@hidden>)

  • Prev by Date: Re: Private NIBs?
  • Next by Date: Re: Categories overriding methods
  • Previous by thread: Re: define class variable
  • Next by thread: Re: define class variable
  • Index(es):
    • Date
    • Thread