Re: Strong language about Cocoa and Qt.
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.