• 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 data members
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static data members


  • Subject: Re: static data members
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 24 Apr 2004 02:33:12 +0200

Ivan,

On 24.4.2004, at 2:13, Ivan Kourtev wrote:

> I suspect that in Objective-C there is no straightforward equivalent
> to a C++'s static data member of a class, that is, a data member that
> is shared among all instances of a class?

Wrong, there is: a plain old static variable.

> ... Other than declaring a static variable in the class's *.m file,
> are there any other suggested approaches to this situation?

No: why would you want anything other?
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: 
 >static data members (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: Getting a command key before it is interpreted by the menus
  • Next by Date: Re: Hardware Assets
  • Previous by thread: static data members
  • Next by thread: Cross-compile on Linux (x86) machine?
  • Index(es):
    • Date
    • Thread