Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CVS and Nib Help

CVS and Nib Help
Thread Tools
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Jul 23, 2003, 09:33 AM
 
I successfully set up CVS for use with Project Builder by following this tutorial. However, this only works for text files. I would like to be able to do version control with nib files from Project Builder (nib files are really many files bundled together, I think).

My understanding is that I need to edit the cvswrappers file in my CVSROOT directory based on this documentation from Apple. However, I am not much of a Unix shell command line person. Do you think someone can walk me through, or post a quick example of how to edit the cvswrappers file and what to do after I am done editing it and what to edit it withjavascript:smilie('')

Any help appreciated.
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 23, 2003, 08:04 PM
 
You can edit cvswrappers in any text editor.
BBedit, for example.

You want to add this line to the
"# Wrapped files" section:

*.nib -k 'b' -f '/Developer/Tools/cvs-unwrap %s' -t '/Developer/Tools/cvs-wrap %s %s' -m 'COPY'


There are some other common binary files which you may want to handle also:

*.icns -k 'b' -m 'COPY'
*.rsrc -k 'b' -m 'COPY'


After you've saved changes to cvswrappers, the best thing to do is to rename your current working source directory and check out a new clean copy. Diff the two and make sure nibs and binary files are identical.

Then make an edit to a nib, and submit it. Delete the local working copy and check out a clean one. Make sure it's OK. Repeat for any other binary files types you use.
     
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Jul 24, 2003, 10:04 AM
 
Originally posted by arekkusu:
Diff the two and make sure nibs and binary files are identical.
I am not sure what you mean by this, difference the two? What do you think is the best way to do that?

Originally posted by arekkusu:

Then make an edit to a nib, and submit it. Delete the local working copy and check out a clean one. Make sure it's OK. Repeat for any other binary files types you use.
You mean I have to do this for each binary file? That could take a while, do you mean just check to make sure that all of my files of the newly checked out project match my older checkedout project?
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 24, 2003, 07:42 PM
 
IMHO, the best binary diff tool is MPW "equal". I haven't found a good OS X native replacement. Resourcerer "Compare Two Files" works fine, for one file at a time.

You don't have to check every single binary file, one of each file type is sufficient. If you check in a .rsrc or .nib and then check out a clean copy, and it looks OK and works, then you're probably fine.

Basically you just want to convince yourself that CVS isn't corrupting your binaries. By default it tries to store revisions as diffs, treating files as text and comparing line-by-line. Editing cvswrapper makes it store the entire file as one binary chunk for each revision.
     
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Jul 25, 2003, 09:44 AM
 
So I added the lines you as you described to my cvswrappers file and checkout out my project again. However, I couldn't open any of the nib files. I would double click on them from the Finder (or from within PB) and Interface Builder would launch, but nothing would open.

Got any suggestions?
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 26, 2003, 06:29 PM
 
try searching http://cocoa.mamasam.com for 'cvs nib'
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2