Re: Refactoring tools available for Cocoa / ObjC?
Re: Refactoring tools available for Cocoa / ObjC?
- Subject: Re: Refactoring tools available for Cocoa / ObjC?
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Mon, 1 May 2006 22:18:13 -0500
On 5/1/06, Ondra Cada <email@hidden> wrote:
Eric,
On 2.5.2006, at 3:21, Eric Lin wrote:
> Coming from Eclipse / Java, I've been spoiled by the ability to rename
> any identifier in my code (class, method, variable) and have the IDE
> automatically (and reliably) replaces all occurrences of the
> identifier through my code. This enable me to prototype my code
> quickly and refractor later. Unfortunately, I couldn't seem to find
> any equivalent technology for Cocoa / Obj C. Is there a reason for
> this? Does Obj-C's loose-typing affect this somehow?
Definitely.
Assume you want refactor -[MyClass intValue] to -[MyClass longValue].
Whilst a smart re-factoring tool can point out and change a number of
cases like
MyClass *o;
...
[o intValue];
there is absolutely no way for it to determine whether
[[someArray objectAtIndex:0] intValue]
Although I agree that this would create problems for a refactoring
tool, why does it need to be all-or-nothing? Even just being able to
rename classes would be fantastic, and I don't think that would
present (m)any problems with Objective-C's loose typing. Could be
wrong, though.
Larry
_______________________________________________
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