Re: Static in Subclasses

2008-03-27 Thread Jon Gordon
On Mar 27, 2008, at 5:17 PM, [EMAIL PROTECTED] wrote: Date: Thu, 27 Mar 2008 14:44:17 -0600 From: Justin Giboney <[EMAIL PROTECTED]> Subject: Static in Subclasses To: Cocoa Developers Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII;

Re: Static in Subclasses

2008-03-27 Thread Troy Stephens
On Mar 27, 2008, at 2:05 PM, Hamish Allan wrote: On Thu, Mar 27, 2008 at 8:44 PM, Justin Giboney <[EMAIL PROTECTED]> wrote: How can I get a variable that is static to each subclass, but that is declared in the super class? In short, you can't. "static" in C means "within the scope of the sour

Re: Static in Subclasses

2008-03-27 Thread Hamish Allan
On Thu, Mar 27, 2008 at 8:44 PM, Justin Giboney <[EMAIL PROTECTED]> wrote: > How can I get a variable that is static to each subclass, but that is > declared in the super class? In short, you can't. "static" in C means "within the scope of the source file". Split your subclasses off into their

Re: Static in Subclasses

2008-03-27 Thread Ken Thomases
On Mar 27, 2008, at 3:44 PM, Justin Giboney wrote: I need to create a series of classes that implement the Singleton design pattern. These classes have a lot of similar methods (I am trying to create a series of DAOs see: http://en.wikipedia.org/wiki/ Data_Access_Object). I was thinking th

Static in Subclasses

2008-03-27 Thread Justin Giboney
I need to create a series of classes that implement the Singleton design pattern. These classes have a lot of similar methods (I am trying to create a series of DAOs see: http://en.wikipedia.org/wiki/Data_Access_Object) . I was thinking that it would be best to create a super class, and a