• 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: Category or Protocol? (sidetrack)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Category or Protocol? (sidetrack)


  • Subject: Re: Category or Protocol? (sidetrack)
  • From: Mark Dalrymple <email@hidden>
  • Date: Thu, 21 Apr 2005 18:03:02 -0400

Much of what I do at work (e.g. rename a method that is called from literally 1000 locations in 300 files) I would never attempt with XCode or any other non-smart tool.


.. presumed this kind of task is ever needed (and, having maintained nearly million-line projects for years, I've never bumped into one yet!),

Turning a block of code into a method, replacing similar code with that method call, renaming methods or classes to support a new design, etc. are things that I do all the time, because they are simple operations with a refactoring editor. With XCode, this has to be done semi-manually.

For folks who aren't afraid of the command-line, there is a handy little tool called 'tops' that does some of these tasks in Objective-C, like renaming functions, renaming methods, changing order of method arguments around, and so on. Not as pretty or convenient as a refactoring IDE, but a little more robust than a blind regexp.


'man tops' in your favorite shell.

Cheers,
++Mark Dalrymple, email@hidden
  http://borkware.com

_______________________________________________
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


References: 
 >RE: Category or Protocol? (sidetrack) (From: Jeff Laing <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Rick Kitts <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Ondra Cada <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Toolbar button not disabling while modal window up
  • Next by Date: matching single key/value pair to dictionary
  • Previous by thread: Re: Category or Protocol? (sidetrack)
  • Next by thread: Re: Category or Protocol? (sidetrack)
  • Index(es):
    • Date
    • Thread