• 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: globals and memory leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: globals and memory leaks (From: publiclook <email@hidden>)

  • Prev by Date: Re: A pie analyzer
  • Next by Date: Re: cocoa.mamasam.com
  • Previous by thread: Re: globals and memory leaks
  • Next by thread: finding the path to the desktop...
  • Index(es):
    • Date
    • Thread