Class variable?
Class variable?
- Subject: Class variable?
- From: Randall Meadows <email@hidden>
- Date: Fri, 6 Feb 2004 15:52:48 -0500
[Man, I hope this isn't a stoopit question...]
Is there a way in Cocoa to define a class variable that is shared
among all instances of that class, analogous to a +method? How?
What I want to do is basically create a class that doles out
instances of a Carbon structure, and include retain/release
capability using reference counting. I was thinking of keeping a
NSDictionary of the structures I create, using the address as the
key, and another NSDictionary for the counts, similarly keyed.
Am I re-inventing the wheel? Am I just too ignorant about Cocoa to
know how to do this with a simple NSObject subclass?
[PS-What are the feelings about cross-posting to cocoa-dev and
macosx-dev? I'm new to both, so I don't have a feel for any "turf
war" that might be going on...]
_______________________________________________
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.