Re: Refactoring tools available for Cocoa / ObjC?
Re: Refactoring tools available for Cocoa / ObjC?
- Subject: Re: Refactoring tools available for Cocoa / ObjC?
- From: Ondra Cada <email@hidden>
- Date: Wed, 3 May 2006 19:44:50 +0200
Greg,
oh, a propos...
On 3.5.2006, at 19:18, Greg Titus wrote:
in earlier releases NSArray was concrete
I don't think so. Unless my memory plays ugly tricks on me, all
container classes were clusters from the very beginning, when
OpenStep came out (was in 1992? or something similar, can't recall
the exact date).
Though, it is quite possible that there used to be some cases when
the cluster just decided to instantiate the cluster class, like this:
-initWith.... { // of course NSArray is (probably) not implemented
this way, but it could be
if (...) return [[SomeConcreteSubclass alloc] initWith...];
else if (...) return [[NSArray alloc] init]; // for example, if
there is no content for an immutable...
}
Actually, it is possible (improbable, but possible) that even now or
say in Leopard Cocoa release in some extremely rare case the NSArray
(or NSString, NSDictionary, NSNumber, NSTask, ....) cluster does
exactly this (returning an instance of the so-called "abstract
superclass"). It would be *perfectly correct*. So much for the
"patterns" of yours :)
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden