[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: RFC GDL2: move +load implementations to +initialize]

From: David Ayers
Subject: Re: [Fwd: RFC GDL2: move +load implementations to +initialize]
Date: Fri, 17 Jan 2003 17:55:26 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212

Adam Fedor wrote:

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.

Exactly that was my problem :-) GSPlaceholderString wasn't loaded.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]