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

Re: Subclass


  • Subject: Re: Subclass
  • From: lbland <email@hidden>
  • Date: Sat, 14 Jun 2003 11:07:49 -0400

On Saturday, June 14, 2003, at 10:40 AM, Marco Scheurer wrote:

3. The ability to declare static instance vars (instance vars that are part of the class object rather than of any instance of that class). If I've missed this functionality somewhere, please tell me where it is. I generally use globals to emulate it, which I personally feel is bad style.

What's missing is real class variables (static vars are available as in plain C and often used as a workaround for class variables).

... with appropriate class methods to access, set, etc. the static vars (in the file scope of the class implementation) ...

I don't see how this is such a big issue though, it works well enough. IMHO: when the class gets big then it is time to define a "helper" class and use an instance of that class as a "class resource" anyways. I see that as a pattern that emerges.


Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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: 
 >Re: Subclass (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: NSApplication delegate not released on quit?
  • Next by Date: Re: Completion Dictionary (was: Re: troubling article)
  • Previous by thread: Re: Subclass
  • Next by thread: Re: Subclass
  • Index(es):
    • Date
    • Thread