On 7 Oct, 2009, at 01:53, Bill Bumgarner wrote:
On Oct 6, 2009, at 4:48 PM, Colin Howarth wrote:
I'm coming across the odd instance where the use of a class
variable would seem to make sense.
I can do this with a static definition in the class implementation
file, I suppose.
Question is:
On Oct 6, 2009, at 4:48 PM, Colin Howarth wrote:
> I'm coming across the odd instance where the use of a class variable would
> seem to make sense.
>
> I can do this with a static definition in the class implementation file, I
> suppose.
>
> Question is: is this particularly frowned upon in th
The canonical implementation of a singleton class uses a static to
hold the singleton instance. There are other examples in Apple sample
code of using class statics. So, I would say that it's not frowned
upon as long as there's a good reason to do it.
Luke
On Oct 6, 2009, at 4:48 PM, Colin
Hi,
I'm coming across the odd instance where the use of a class variable
would seem to make sense.
I can do this with a static definition in the class implementation
file, I suppose.
Question is: is this particularly frowned upon in the Cocoa world? If
so, why?
Thanks,
--colin
__