• 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 variable in Obj-C way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Static variable in Obj-C way? (From: Youngjin Kim <email@hidden>)

  • Prev by Date: Re: "Tricks" of the "Trade"
  • Next by Date: Re: OpenGL Examples in Cocoa
  • Previous by thread: Static variable in Obj-C way?
  • Next by thread: Re: Static variable in Obj-C way?
  • Index(es):
    • Date
    • Thread