Re: globals and memory leaks
Re: globals and memory leaks
- Subject: Re: globals and memory leaks
- From: "Kenneth C. Dyke" <email@hidden>
- Date: Sun, 20 Apr 2003 23:11:56 -0700
On Sunday, April 20, 2003, at 08:18 PM, publiclook wrote:
It is almost OK to do what you are doing. You need the following:
@implementation MyClass
+ (void)initialize
{
if(self == NSClassFromString(@"MYClass"))
Or better yet: if(self == [MyClass class])
Which will be a lot less work. ;)
-Ken
Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
C++: The power, elegance and simplicity of a hand grenade.
_______________________________________________
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.