Re: define class variable
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.