Re: Searching in xib files?
Re: Searching in xib files?
- Subject: Re: Searching in xib files?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 22 Dec 2012 22:40:56 -0800
On 2012 Dec 21, at 21:38, Quincey Morris <email@hidden> wrote:
> I'm still not clear what it is you're searching for. E.g. do you mean you might delete the code that implements a custom binding, or that you might delete the @property definition which a standard binding is bound to?
Yes. When searching through my code, sometimes I find a method which has only an implementation but is never invoked. Is this an abandoned method that I should delete? Or is it bound to it in a nib? Likewise for resources such as png files. I need to crank up BBEdit to answer these questions for sure.
> The reason I ask is that if you're interested in knowing if a XIB file is using a property, you can use Refactor->Rename on the property declaration to get the preview sheet, and it will include XIB files in its display of what would be changed.
Yes, I know that Refactoring now covers xibs. But even so, I often prefer to do my renaming "manually", with ⌘⇧F, first with lowercase and then with Titlecase, because Refactoring does not search comments. If I have a comment saying the method -foo does so and so, and then I rename foo to bar, the comment needs to change too! Also, I like to read relevant comments before changing things :) If I remember correctly, CodeWarrior's ⌘⇧F allowed searching in code, comments or both. I liked that.
> For the record, Command-3 just displays the navigator pane in its most recent state, and doesn't change focus. Command-Shift-F reconfigures it back to being just a find (the replace option gets re-hidden) and then displays it if necessary and selects the find string text field.
Thank you, Quincey.
_______________________________________________
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