Re: How to search for specific bindings in IB
Re: How to search for specific bindings in IB
- Subject: Re: How to search for specific bindings in IB
- From: Ken Thomases <email@hidden>
- Date: Mon, 9 Aug 2010 21:16:54 -0500
I'm redirecting this to the xcode-users list, where it is more appropriate.
On Aug 9, 2010, at 7:14 PM, Chris Tracewell wrote:
> On occasion I refactor a controller or model by deleting a property. I do my best to remove associated bindings in IB, but many times I miss something - a textfield bound to a deleted property for example. This leads to...
>
> this class is not key value coding-compliant for the key myProperty.
>
> In larger NIB files this can be hard to find and remove. Is there anyway to search IB for bindings other than selecting individual elements and looking at the bindings inspector?
There are several tools I use:
One is the Connections inspector. It shows, in the Referencing Bindings section, things which are bound to the object, as well as sections for bindings of the object to something else and other types of connections. So, I'd look at the connections to the controller having the property to be removed (or mediating access to the model which has that property). This same info is available in the HUD panel you get by right-clicking on an object.
The second is Xcode's Find in Project window. There's a pop-up for the type of search. It's typically Textual or Regular Expression. However, if you do a Symbolic search, it can find symbols within NIBs. My main complaint with this feature is that, once it finds something, it really doesn't tell you where within the NIB the symbol was found. You can double-click the search result to open the NIB, but it doesn't select the relevant object.
Finally, you can use ibtool to dump information about a NIB. You can then search the output for the name of the property you're removing.
Regards,
Ken
_______________________________________________
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