|
From: | Philip Mötteli |
Subject: | Re: Is +[NSMutableArray initialize] completely implemented? |
Date: | Sun, 22 Feb 2004 12:56:37 +0100 |
Hi Am 22.02.2004 um 11:02 schrieb Richard Frith-Macdonald:
On 22 Feb 2004, at 09:30, Philip Mötteli wrote:Am 22.02.2004 um 01:10 schrieb Richard Frith-Macdonald:On 21 Feb 2004, at 23:49, Philip Mötteli wrote:The runtime should ensure that [NSArray+initialize] is called before [NSMutableArray+initialize]Is that sure?Yes.
You're right.
and that [NSMutableArray+initialize] is called before any other method of the class, so I don't know how -initWithCapacity: could be called without NSMutableArrayClass being initialised.or step through in debug yourself to find out what is going on?I set a breakpoint in both +initialize, in NSMutableArray and NSArray and NSArray's initialize is clearly not called.Then I guess for some reason the runtime does not think that NSMutableArray inherits from NSArray ... why not?
I found the problem: I have a +initialize method in a category of NSArray. So the runtime system called only this one.
Sorry! Phil
[Prev in Thread] | Current Thread | [Next in Thread] |