• 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: Strong language about Cocoa and Qt.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strong language about Cocoa and Qt.


  • Subject: Re: Strong language about Cocoa and Qt.
  • From: Kyle Moffett <email@hidden>
  • Date: Wed, 2 Jul 2003 15:24:52 -0400

On Wednesday, Jul 2, 2003, at 14:51 US/Eastern, Jeff Harrell wrote:
Uh. Sorry for presuming, but I thought it would have been obvious that all of them do just that by default.

+ (void)initialize
{
[[MyObject superclass] initialize];
}

This one probably shouldn't. the "initialize" selector is automatically called before the class receives any other messages, so this would call it twice. Here is my default, which I fill in if needed:

+ (void) initialize {
static BOOL initialized = NO;
if (!initialized) {
initialized = YES;
// Code here
}
}

Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a16 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP? t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r !y?(-)
------END GEEK CODE BLOCK------
_______________________________________________
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.
  • Follow-Ups:
    • Re: Strong language about Cocoa and Qt.
      • From: Jeff Harrell <email@hidden>
References: 
 >Re: Strong language about Cocoa and Qt. (From: Jeff Harrell <email@hidden>)

  • Prev by Date: Re: EOF undead?
  • Next by Date: makeWindowControllers
  • Previous by thread: Re: Strong language about Cocoa and Qt.
  • Next by thread: Re: Strong language about Cocoa and Qt.
  • Index(es):
    • Date
    • Thread