Re: Refactoring tools available for Cocoa / ObjC?
Re: Refactoring tools available for Cocoa / ObjC?
- Subject: Re: Refactoring tools available for Cocoa / ObjC?
- From: "Keith Ray" <email@hidden>
- Date: Wed, 3 May 2006 11:51:58 -0700
Part of the "refactoring" problem is class names and method names
referenced from nib files (target-action, bindings, etc.). XCode's
search and replace doesn't find those. You end up having to search the
nib files using BBEdit.
And please don't argue from lack of imagination: "I can't image why
you would want this, so obviously you don't need this." It just
creates more noise on the mailing list and doesn't help. Google around
if you want more information on this topic.
Refactoring tools were INVENTED in Smalltalk before they were made
available to Java programmers. Smalltalk is more dynamic than
Objective-C (variables and methods don't have type declarations --
ever, while OC variables and methods usually have type declarations),
and yet those tools worked reliably enough for Smalltalk programmers
to be more productive than Cocoa programmers.
"rename method or class" refactorings are only a two of the
refactorings that people do. See
http://www.refactoring.com/catalog/index.html for a list.
On 5/1/06, Ondra Cada <email@hidden> wrote:
Lawrence,
On 2.5.2006, at 5:18, Lawrence Sanbourne wrote:
> Even just being able to rename classes would be fantastic
Well, save for rare (but still valid) cases like NSClassFromString
([myPrefix stringByAppendingString:@"String"]) you can do this very
easily with find-and-replace, can you not?
Perhaps I am overlooking something obvious, but I do not see many
cases you would have the same string as the class name in sources and
you are definitely sure you don't want to change it. Even in pretty
pathological cases like
{ int NSString=7; ... }
the very reason you have used this extremely weird variable name most
probably was that you *wanted* it to reflect the class name, and thus
you would again *want* to change it when the class gets renamed.
What am I overlooking?
---
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
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
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