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 17:53:45 +0200
Greg,
On May 3, 2006, at 5:22 PM, Greg Titus wrote:
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.
Although I agree I am not a Smalltalk guru by far, I can still say
that's wrong.
The reason is that, just again, whilst in Smalltalk there can be some
(whatever sweet way unknown to me they are achieved and detected), in
ObjC *there are no abstract classes*. Period. You encounter NSObject
instances pretty often, a few times I've even instantiated NSArrays.
I haven't ever instantiate an NSString, but I bet some other one
did :) And so forth.
As I've said, I am about to study the Smalltalk refactoring (am
actually looking forward to that), but regardless Smalltalk-
savviness, I do know ObjC pretty well. There is *no way* to use and/
or detect abstract classes reliably there (unless compiler and
runtime both get seriously limited). Sure, the tool may scan the
project whether the class is instantiated or not--which is bound to
fail since a class may be instantiated dynamically without ever
mentioning its name anywhere. Or from a loadable bundle. And so forth...
---
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