Re: Refactoring tools available for Cocoa / ObjC?
Re: Refactoring tools available for Cocoa / ObjC?
- Subject: Re: Refactoring tools available for Cocoa / ObjC?
- From: Greg Titus <email@hidden>
- Date: Wed, 3 May 2006 08:22:12 -0700
On May 3, 2006, at 7:45 AM, Ondra Cada wrote:
Horst,
On 3.5.2006, at 15:44, Horst Hoesel wrote:
I am afraid not for ObjC though, for there are no abstract
classes there
I didn't quite follow this thread, but I'm pretty sure that ObjC
has a concept of abstract classes the most prominent being
NSObject :)
Nope, you can freely instantiate and use NSObject (just like *any*
other class) in Objective C. There is absolutely no concept of an
abstract class in the language.
There are in a sense "abstract" classes in the API, namely clusters
(NSArray, NSString, etc.). There, though, the abstraction is
ensured runtime (generally re-implementing init and alloc, other
ways possible): a re-factoring tool has no way to determine whether
it is so indeed or not.
Ondra,
Try actually reading about the Smalltalk refactoring browser and
Smalltalk in general. There is no 'abstract' keyword or equivalent in
Smalltalk either, but it still is possible to determine abstract
classes. You could use exactly the same methods to determine abstract
classes in Objective C.
Hope this helps,
- Greg
_______________________________________________
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