• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refactoring doesn't?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refactoring doesn't?


  • Subject: Re: Refactoring doesn't?
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 19 Mar 2009 23:22:47 -0700


On Mar 19, 2009, at 11:08 PM, Jack Repenning wrote:

I did a refactoring of some Objective-C in Xcode 3.1.2 (renamed a bunch of popular messages). Many changes were made, but it turns out many others were missed. Now that I've dug myself out of that hole, I'm trying to understand why so many uses of the various symbols were missed.

Is the problem, perhaps, that Refactoring doesn't look into Category files? Some of the missed changes definitely were in category code. Or, slight wrinkle on that, do *.m files get left out of refactoring if they have no matching *.h file? (That is, some of my categories extend my own classes, so there's one .h for several .m's, and only one of the .m's has the same basename as the .h).

Both of these would surprise us. We know of cases where refactoring misses code that's in old-style (K&R) C syntax or hidden in conditional macros, but in straight-up Objective-C code, if you can find the symbols in Project Find or they're listed in the Symbols smartgroup, Refactoing should catch them.


A "before" version of the project with the symbols that were missed would be most helpful, or just a description of what was where so we can try to reproduce this in a test case.

Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Refactoring doesn't?
      • From: Jack Repenning <email@hidden>
References: 
 >Refactoring doesn't? (From: Jack Repenning <email@hidden>)

  • Prev by Date: Refactoring doesn't?
  • Next by Date: Copy Files Build Phase & Dependent target executables
  • Previous by thread: Refactoring doesn't?
  • Next by thread: Re: Refactoring doesn't?
  • Index(es):
    • Date
    • Thread