I want to read the Xib files of other projects and the edit them programmatically using Xcode (say deleting a button or text possible).
Possible?
I want to read the Xib files of other projects and the edit them programmatically using Xcode (say deleting a button or text possible).
Possible?
Yes it is possible. You can edit xib files(XML) using textedit also.
<object class="NSMenuItem" id="425164168">
<reference key="NSMenu" ref="720053764"/>
<bool key="NSIsDisabled">YES</bool>
<bool key="NSIsSeparator">YES</bool>
<string key="NSTitle"/>
<string key="NSKeyEquiv"/>
<int key="NSKeyEquivModMask">1048576</int>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="35465992"/>
<reference key="NSMixedImage" ref="502551668"/>
</object>
You can try this.
The correct answer was given by user763308 at url "How to link a .xib file to a class file with Xcode 4":
To link a .xib to a class under Xcode4:
Open your .xib. In placeholder: select File's Owner. In the third thumbnail:"Identity Inspector" of the right panel, edit the "Custom Class" field and enter the name of your class. I also then had to:
Click the root view under Objects. Click the last tab: "Show Connections". Drag "New referencing outlet" to "File's Owner" and select "view".