Re: Enormous .xib diffs between IB minor versions
Re: Enormous .xib diffs between IB minor versions
- Subject: Re: Enormous .xib diffs between IB minor versions
- From: Kevin Cathey <email@hidden>
- Date: Wed, 14 Apr 2010 09:58:58 -0700
Jens,
We are constantly trying to improve the efficiency and readability of the XIB file format, and even between minor revisions (e.g. 3.a.b to 3.a.c), the format can change.
To minimize diffs, you can set the development target of a XIB file using the document's info window (Window => Document Info). While the granularity of this is between major revisions of IB (e.g. 3.a to 3.b), it should at least help if you choose the same development target. For more information on this, see page 150 of the IB User Guide (version 2010-03-24).
If you have particular cases and suggestions, please feel free to file Radars.
Thanks.
Kevin
On 14 Apr 2010, at 09:41, Jens Alfke wrote:
> I maintain an open source project that receives patches from various people, not all of whom have exactly the same version of Xcode installed. I find that, if someone makes even minor changes to a .xib file using a different version of IB than the one that last saved the file, enormous diffs will result, making the patches very hard to read.
>
> For example, I just got a patch that supposedly just adds one outlet and wires it up, but the diffs to the .xib file are 740 lines long! They don’t look like no-ops, either: lots of ids changing, big binary TIFF blobs coming and going, entire dictionaries being added/removed, etc.
>
> And by ‘different version of IB’ I don’t mean Xcode 3.1 vs 3.2 — it seems like even minor version differences cause this. That patch I just mentioned begins with
> - <string key="IBDocument.InterfaceBuilderVersion">783</string>
> + <string key="IBDocument.InterfaceBuilderVersion">762</string>
> I think the difference is that I have installed the new iPh-n- OS SDK and he is still using the regular Xcode 3.2.2. (I just checked, and the IB from Xcode 3.1.3 writes version 677 into xibs.)
>
> Is there anything that can be done about this, short of rejecting patches from people who don’t have the same version of the tools that I do?
>
> —Jens _______________________________________________
> 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
_______________________________________________
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