Re: Static variable in Obj-C way?
Re: Static variable in Obj-C way?
- Subject: Re: Static variable in Obj-C way?
- From: Peter Ammon <email@hidden>
- Date: Fri, 08 Jun 2001 10:09:38 -0700
on 6/7/01 6:48 PM, Youngjin Kim at email@hidden wrote:
>
Hi,
>
I am looking for a way to define static variable in obj-C. Does anyone
>
know how? Yes, I can use extern declaration as in C, but there's got
>
to be more objective way. or there isn't?
Nope. Objective-C doesn't change or add anything regarding static variables
(either in the "keeps its value after the function exits" sense or the
"accessible only to this file" sense). Do it however you'd do it in C.
-Peter