• 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: How to search for specific bindings in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: XCode default path type
  • Next by Date: Re: iOS 4.0.1: The version of iPhone OS is too old
  • Previous by thread: Re: R in Xcode? - foreign langage support
  • Next by thread: Inspecting the build commands
  • Index(es):
    • Date
    • Thread