[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: RFC GDL2: move +load implementations to +initialize]
From: |
Adam Fedor |
Subject: |
Re: [Fwd: RFC GDL2: move +load implementations to +initialize] |
Date: |
Fri, 17 Jan 2003 09:24:30 -0700 |
On Friday, January 17, 2003, at 09:16 AM, Adam Fedor wrote:
(2) Objective-C code should never be used in a +load method. A lot of
basic Objective-C/Foundation code is not setup when the +load messages
are sent (like NSString). Trying to send messages in +load can
potentially cause a nightmare of recursive initialization.
Actually, more important, you can't even guarantee that all you classes
have been loaded into the runtime when a +load message is sent.