[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] global variable



you can define a variable in one file and define the same variable as an
extern in teh other file. then this will be a global variable ... remember
not to declare it in any class/function.

i suggest you define it in nsobject coz everything is derived from it
finally. and then define a method to access it. 

using globals may not be a great idea. 

debo

On Wed, 25 Jul 2001, Kai Li wrote:

> hi,Dutta!
> 
> Thanx your reply.
> 
> But I mean I want to define a global variable in C++ code, so that my mac layer 
> and net-if layer will both use the same one?
> 
> Thanx a lot for your help.
> 
> - Kai
> 
>